diff --git a/pages/cloudflare/caching.mdx b/pages/cloudflare/caching.mdx index 14c3d55..e8adb01 100644 --- a/pages/cloudflare/caching.mdx +++ b/pages/cloudflare/caching.mdx @@ -35,7 +35,7 @@ npx wrangler@latest kv namespace create The binding name used in your app's worker is `NEXT_CACHE_WORKERS_KV`. ```jsonc -// wrangler.json +// wrangler.jsonc { // ... "kv_namespaces": [ @@ -96,7 +96,7 @@ To use on-demand revalidation, you should also follow the [ISR setup steps](#inc The binding name used in your app's worker is `NEXT_CACHE_D1`. ```jsonc -// wrangler.json +// wrangler.jsonc { // ... "d1_databases": [ diff --git a/pages/cloudflare/get-started.mdx b/pages/cloudflare/get-started.mdx index a29ed7b..6cb4517 100644 --- a/pages/cloudflare/get-started.mdx +++ b/pages/cloudflare/get-started.mdx @@ -43,7 +43,7 @@ npm install --save-dev wrangler@latest A [wrangler configuration file](https://developers.cloudflare.com/workers/wrangler/configuration/) is needed for your application to be previewed and deployed, it is also where you configure your Worker and define what resources it can access via [bindings](https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings). -You can create one yourself in the root directory of your Next.js app with the name `wrangler.json` and the following content: +You can create one yourself in the root directory of your Next.js app with the name `wrangler.jsonc` and the following content: ```jsonc {