Skip to content

Commit 9aaefd0

Browse files
authored
docs(cloudflare): add global_fetch_strictly_public to get started (#133)
1 parent d7566e4 commit 9aaefd0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

pages/cloudflare/get-started.mdx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,14 @@ You can create one yourself in the root directory of your Next.js app with the n
5050
"main": ".open-next/worker.js",
5151
"name": "my-app",
5252
"compatibility_date": "2024-12-30",
53-
"compatibility_flags": ["nodejs_compat"],
53+
"compatibility_flags": [
54+
// Enable Node.js API
55+
// see https://developers.cloudflare.com/workers/configuration/compatibility-flags/#nodejs-compatibility-flag
56+
"nodejs_compat",
57+
// Allow to fetch URLs in your app
58+
// see https://developers.cloudflare.com/workers/configuration/compatibility-flags/#global-fetch-strictly-public
59+
"global_fetch_strictly_public",
60+
],
5461
"assets": {
5562
"directory": ".open-next/assets",
5663
"binding": "ASSETS",

0 commit comments

Comments
 (0)