Skip to content

Commit 56c2aeb

Browse files
committed
fixup! renaming
1 parent 0bd53e0 commit 56c2aeb

File tree

20 files changed

+73
-72
lines changed

20 files changed

+73
-72
lines changed

examples/e2e/app-pages-router/wrangler.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"kv_namespaces": [
1212
{
13-
"binding": "NEXT_CACHE_KV",
13+
"binding": "NEXT_INC_CACHE_KV",
1414
"id": "<BINDING_ID>"
1515
}
1616
],

examples/e2e/app-router/wrangler.jsonc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
"durable_objects": {
1212
"bindings": [
1313
{
14-
"name": "NEXT_CACHE_DO_REVALIDATION",
14+
"name": "NEXT_CACHE_DO_QUEUE",
1515
"class_name": "DurableObjectQueueHandler"
1616
},
1717
{
18-
"name": "NEXT_CACHE_DO_SHARDED",
18+
"name": "NEXT_TAG_CACHE_DO_SHARDED",
1919
"class_name": "DOShardedTagCache"
2020
}
2121
]
@@ -28,7 +28,7 @@
2828
],
2929
"kv_namespaces": [
3030
{
31-
"binding": "NEXT_CACHE_KV",
31+
"binding": "NEXT_INC_CACHE_KV",
3232
"id": "<BINDING_ID>"
3333
}
3434
],

examples/e2e/pages-router/wrangler.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"kv_namespaces": [
1212
{
13-
"binding": "NEXT_CACHE_KV",
13+
"binding": "NEXT_INC_CACHE_KV",
1414
"id": "<BINDING_ID>"
1515
}
1616
],

examples/overrides/d1-tag-next/wrangler.jsonc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
},
1414
"kv_namespaces": [
1515
{
16-
"binding": "NEXT_CACHE_KV",
16+
"binding": "NEXT_INC_CACHE_KV",
1717
"id": "<BINDING_ID>"
1818
}
1919
],
2020
"d1_databases": [
2121
{
22-
"binding": "NEXT_CACHE_D1",
23-
"database_id": "NEXT_CACHE_D1",
24-
"database_name": "NEXT_CACHE_D1"
22+
"binding": "NEXT_TAG_CACHE_D1",
23+
"database_id": "NEXT_TAG_CACHE_D1",
24+
"database_name": "NEXT_TAG_CACHE_D1"
2525
}
2626
]
2727
}

examples/overrides/memory-queue/wrangler.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"kv_namespaces": [
1212
{
13-
"binding": "NEXT_CACHE_KV",
13+
"binding": "NEXT_INC_CACHE_KV",
1414
"id": "<BINDING_ID>"
1515
}
1616
],

examples/overrides/r2-incremental-cache/wrangler.jsonc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
"e2e": {
1313
"d1_databases": [
1414
{
15-
"binding": "NEXT_CACHE_D1",
16-
"database_id": "NEXT_CACHE_D1",
17-
"database_name": "NEXT_CACHE_D1"
15+
"binding": "NEXT_TAG_CACHE_D1",
16+
"database_id": "NEXT_TAG_CACHE_D1",
17+
"database_name": "NEXT_TAG_CACHE_D1"
1818
}
1919
],
2020
"services": [
@@ -25,9 +25,9 @@
2525
],
2626
"r2_buckets": [
2727
{
28-
"binding": "NEXT_CACHE_R2_BUCKET",
29-
"bucket_name": "NEXT_CACHE_R2_BUCKET",
30-
"preview_bucket_name": "NEXT_CACHE_R2_BUCKET"
28+
"binding": "NEXT_INC_CACHE_R2_BUCKET",
29+
"bucket_name": "NEXT_INC_CACHE_R2_BUCKET",
30+
"preview_bucket_name": "NEXT_INC_CACHE_R2_BUCKET"
3131
}
3232
]
3333
},

examples/playground14/wrangler.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"kv_namespaces": [
1212
{
13-
"binding": "NEXT_CACHE_KV",
13+
"binding": "NEXT_INC_CACHE_KV",
1414
"id": "<BINDING_ID>"
1515
}
1616
],

examples/playground15/wrangler.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"kv_namespaces": [
1212
{
13-
"binding": "NEXT_CACHE_KV",
13+
"binding": "NEXT_INC_CACHE_KV",
1414
"id": "<BINDING_ID>"
1515
}
1616
],

packages/cloudflare/src/api/cloudflare-context.ts

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,37 +16,38 @@ declare global {
1616
WORKER_SELF_REFERENCE?: Service;
1717

1818
// KV used for the incremental cache
19-
NEXT_CACHE_KV?: KVNamespace;
19+
NEXT_INC_CACHE_KV?: KVNamespace;
2020

2121
// R2 bucket used for the incremental cache
22-
NEXT_CACHE_R2_BUCKET?: R2Bucket;
22+
NEXT_INC_CACHE_R2_BUCKET?: R2Bucket;
2323
// Prefix used for the R2 incremental cache bucket
24-
NEXT_CACHE_R2_PREFIX?: string;
24+
NEXT_INC_CACHE_R2_PREFIX?: string;
2525

2626
// D1 db used for the tag cache
27-
NEXT_CACHE_D1?: D1Database;
27+
NEXT_TAG_CACHE_D1?: D1Database;
2828

29-
// Durable Object namespace to use for the durable object queue handler
30-
NEXT_CACHE_DO_REVALIDATION?: DurableObjectNamespace<DurableObjectQueueHandler>;
3129
// Durables object namespace to use for the sharded tag cache
32-
NEXT_CACHE_DO_SHARDED?: DurableObjectNamespace<DOShardedTagCache>;
30+
NEXT_TAG_CACHE_DO_SHARDED?: DurableObjectNamespace<DOShardedTagCache>;
3331
// Queue of failed tag write
3432
// Optional, could be used to monitor or reprocess failed writes
35-
NEXT_CACHE_DO_SHARDED_DLQ?: Queue;
33+
NEXT_TAG_CACHE_DO_SHARDED_DLQ?: Queue;
3634

37-
// Below are the potential environment variables that can be set by the user to configure the durable object queue handler
35+
// Durable Object namespace to use for the durable object queue
36+
NEXT_CACHE_DO_QUEUE?: DurableObjectNamespace<DurableObjectQueueHandler>;
37+
38+
// Below are the environment variables to configure the durable object queue
3839
// The max number of revalidations that can be processed by the durable worker at the same time
39-
MAX_REVALIDATION_BY_DURABLE_OBJECT?: string;
40+
NEXT_CACHE_DO_QUEUE_MAX_REVALIDATION?: string;
4041
// The max time in milliseconds that a revalidation can take before being considered as failed
41-
REVALIDATION_TIMEOUT_MS?: string;
42+
NEXT_CACHE_DO_QUEUE_REVALIDATION_TIMEOUT_MS?: string;
4243
// The amount of time after which a revalidation will be attempted again if it failed
4344
// If it fails again it will exponentially back off until it reaches the max retry interval
44-
REVALIDATION_RETRY_INTERVAL_MS?: string;
45+
NEXT_CACHE_DO_QUEUE_RETRY_INTERVAL_MS?: string;
4546
// The maximum number of attempts that can be made to revalidate a path
46-
MAX_REVALIDATION_ATTEMPTS?: string;
47+
NEXT_CACHE_DO_QUEUE_MAX_NUM_REVALIDATIONS?: string;
4748
// Disable SQLite for the durable object queue handler
4849
// This can be safely used if you don't use an eventually consistent incremental cache (i.e. R2 without the regional cache for example)
49-
REVALIDATION_DO_DISABLE_SQLITE?: string;
50+
NEXT_CACHE_DO_QUEUE_DISABLE_SQLITE?: string;
5051
}
5152
}
5253

packages/cloudflare/src/api/durable-objects/queue.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const createDurableObjectQueue = ({
5454
),
5555
connect: vi.fn(),
5656
},
57-
REVALIDATION_DO_DISABLE_SQLITE: disableSQLite ? "true" : undefined,
57+
NEXT_CACHE_DO_QUEUE_DISABLE_SQLITE: disableSQLite ? "true" : undefined,
5858
});
5959
};
6060

0 commit comments

Comments
 (0)