-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
78946b2
commit c8e492e
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
packages/cloudflare/src/cli/build/patches/to-investigate/patch-exception-bubbling.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** | ||
* When using SSG and `dynamicParams = false`, Next.js throws a NoFallbackError. This error is | ||
* bubbled up by default in Node.js servers, however this causes issues in the workerd with | ||
* the current response handling and streaming implementation we have, and leads to hanging | ||
* promises. | ||
*/ | ||
export function patchExceptionBubbling(code: string) { | ||
console.log("# patchExceptionBubbling"); | ||
|
||
return code.replace(/_nextBubbleNoFallback = "1"/, "_nextBubbleNoFallback = undefined"); | ||
} |