diff --git a/packages/cloudflare/src/cli/templates/worker.ts b/packages/cloudflare/src/cli/templates/worker.ts index 0778dd19..6a29c9ae 100644 --- a/packages/cloudflare/src/cli/templates/worker.ts +++ b/packages/cloudflare/src/cli/templates/worker.ts @@ -11,7 +11,7 @@ const NON_BODY_RESPONSES = new Set([101, 204, 205, 304]); const cloudflareContextALS = new AsyncLocalStorage(); -(globalThis as Record)[Symbol.for("__cloudflare-context__")] = new Proxy( +(globalThis as any)[cloudflareContextSymbol] = new Proxy( {}, { ownKeys: () => Reflect.ownKeys(cloudflareContextALS.getStore()!),