Skip to content

Commit 504408b

Browse files
[cloudflare] add more information around what NEXT_CACHE_REVALIDATION_WORKER is (#97)
1 parent 5fc6b57 commit 504408b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/cloudflare/caching.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ npx wrangler@latest kv namespace create <YOUR_NAMESPACE_NAME>
3232

3333
##### 2. Add the KV namespace and Service Binding to your Worker
3434

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

3737
```jsonc
3838
// wrangler.jsonc
@@ -93,7 +93,7 @@ To use on-demand revalidation, you should also follow the [ISR setup steps](#inc
9393

9494
##### 1. Create a D1 database and Service Binding
9595

96-
The binding name used in your app's worker is `NEXT_CACHE_D1`.
96+
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.
9797

9898
```jsonc
9999
// wrangler.jsonc

0 commit comments

Comments
 (0)