Skip to content

Commit a8776ad

Browse files
committed
add comment to env
1 parent 96e3168 commit a8776ad

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,19 @@ import type { DurableObjectQueueHandler } from "./durable-objects/queue";
44

55
declare global {
66
interface CloudflareEnv {
7+
// KV used for the incremental cache
78
NEXT_CACHE_WORKERS_KV?: KVNamespace;
9+
// D1 db used for the tag cache
810
NEXT_CACHE_D1?: D1Database;
11+
// D1 table to use for the tag cache for the tag/path mapping
912
NEXT_CACHE_D1_TAGS_TABLE?: string;
13+
// D1 table to use for the tag cache for storing the tag and their associated revalidation times
1014
NEXT_CACHE_D1_REVALIDATIONS_TABLE?: string;
15+
// Service binding for the worker itself to be able to call itself from within the worker
1116
NEXT_CACHE_REVALIDATION_WORKER?: Service;
17+
// Durable Object namespace to use for the durable object queue handler
1218
NEXT_CACHE_REVALIDATION_DURABLE_OBJECT?: DurableObjectNamespace<DurableObjectQueueHandler>;
19+
// Asset binding
1320
ASSETS?: Fetcher;
1421
}
1522
}

0 commit comments

Comments
 (0)