From 1572affae95076354a3ddd70385f0131e3be94f0 Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Tue, 29 Apr 2025 10:30:35 +0200 Subject: [PATCH] docs(cloudflare): add `global_fetch_strictly_public` to get started --- pages/cloudflare/get-started.mdx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pages/cloudflare/get-started.mdx b/pages/cloudflare/get-started.mdx index 7f3c0e5..454d474 100644 --- a/pages/cloudflare/get-started.mdx +++ b/pages/cloudflare/get-started.mdx @@ -50,7 +50,14 @@ You can create one yourself in the root directory of your Next.js app with the n "main": ".open-next/worker.js", "name": "my-app", "compatibility_date": "2024-12-30", - "compatibility_flags": ["nodejs_compat"], + "compatibility_flags": [ + // Enable Node.js API + // see https://developers.cloudflare.com/workers/configuration/compatibility-flags/#nodejs-compatibility-flag + "nodejs_compat", + // Allow to fetch URLs in your app + // see https://developers.cloudflare.com/workers/configuration/compatibility-flags/#global-fetch-strictly-public + "global_fetch_strictly_public", + ], "assets": { "directory": ".open-next/assets", "binding": "ASSETS",