Skip to content

Commit abcfb0d

Browse files
committed
fix: update compatibility flags and observability settings in wrangler.jsonc
1 parent ce48c95 commit abcfb0d

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

wrangler.jsonc

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,26 @@
11
{
2-
"$schema": "./node_modules/wrangler/config-schema.json",
2+
"$schema": "node_modules/wrangler/config-schema.json",
33
"main": ".open-next/worker.js",
44
"name": "nezha-dash",
5-
"compatibility_date": "2026-01-02",
6-
"compatibility_flags": ["nodejs_compat"],
5+
"compatibility_date": "2024-12-30",
6+
"compatibility_flags": [
7+
// Enable Node.js API
8+
// see https://developers.cloudflare.com/workers/configuration/compatibility-flags/#nodejs-compatibility-flag
9+
"nodejs_compat",
10+
// Allow to fetch URLs in your app
11+
// see https://developers.cloudflare.com/workers/configuration/compatibility-flags/#global-fetch-strictly-public
12+
"global_fetch_strictly_public"
13+
],
714
"assets": {
815
"directory": ".open-next/assets",
916
"binding": "ASSETS"
17+
},
18+
"observability": {
19+
"logs": {
20+
"enabled": true,
21+
"head_sampling_rate": 1,
22+
"invocation_logs": true,
23+
"persist": true
24+
}
1025
}
1126
}

0 commit comments

Comments
 (0)