Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pages/cloudflare/caching.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ npx wrangler@latest kv namespace create <YOUR_NAMESPACE_NAME>
The binding name used in your app's worker is `NEXT_CACHE_WORKERS_KV`.

```jsonc
// wrangler.json
// wrangler.jsonc
{
// ...
"kv_namespaces": [
Expand Down Expand Up @@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion pages/cloudflare/get-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down