Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: delete init.cache rather than assign undefined
Browse files Browse the repository at this point in the history
Fix an issue with NextAuth (#206)
vicb committed Dec 27, 2024
1 parent c0c1d04 commit 9323774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cloudflare/src/cli/build/bundle-server.ts
Original file line number Diff line number Diff line change
@@ -94,7 +94,7 @@ fetch = globalThis.fetch;
const CustomRequest = class extends globalThis.Request {
constructor(input, init) {
if (init) {
init.cache = undefined;
delete init.cache;
// https://github.com/cloudflare/workerd/issues/2746
// https://github.com/cloudflare/workerd/issues/3245
Object.defineProperty(init, "body", {

0 comments on commit 9323774

Please sign in to comment.