Skip to content

Commit 74a9e20

Browse files
authored
docs(cloudflare): fix D1 binding (#112)
1 parent ac2b0cf commit 74a9e20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/cloudflare/caching.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ doShardedTagCache tahes the following options:
347347

348348
##### 1. Create a D1 database and Service Binding
349349

350-
The binding name used in your app's worker is `NEXT_CACHE_D1`. The service binding should be a self reference to your worker where `<WORKER_NAME>` is the name in your wrangler configuration file.
350+
The binding name used in your app's worker is `NEXT_TAG_CACHE_D1`. The service binding should be a self reference to your worker where `<WORKER_NAME>` is the name in your wrangler configuration file.
351351

352352
```jsonc
353353
// wrangler.jsonc
@@ -356,7 +356,7 @@ The binding name used in your app's worker is `NEXT_CACHE_D1`. The service bindi
356356
"name": "<WORKER_NAME>",
357357
"d1_databases": [
358358
{
359-
"binding": "NEXT_CACHE_D1",
359+
"binding": "NEXT_TAG_CACHE_D1",
360360
"database_id": "<DATABASE_ID>",
361361
"database_name": "<DATABASE_NAME>",
362362
},

0 commit comments

Comments
 (0)