Skip to content

Commit 9323774

Browse files
committed
fix: delete init.cache rather than assign undefined
Fix an issue with NextAuth (#206)
1 parent c0c1d04 commit 9323774

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cloudflare/src/cli/build/bundle-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ fetch = globalThis.fetch;
9494
const CustomRequest = class extends globalThis.Request {
9595
constructor(input, init) {
9696
if (init) {
97-
init.cache = undefined;
97+
delete init.cache;
9898
// https://github.com/cloudflare/workerd/issues/2746
9999
// https://github.com/cloudflare/workerd/issues/3245
100100
Object.defineProperty(init, "body", {

0 commit comments

Comments
 (0)