fix: prevent process crash by rejecting error instead of throwing in renderToReadableStream (#3076)

Co-authored-by: gabriel miranda <gabrielmfern@outlook.com>
This commit is contained in:
Lokesh Tiwari
2026-03-19 02:41:59 +05:30
committed by GitHub
parent e8fc0a44d4
commit ecfc1415b4
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@react-email/render": patch
---
fix process crashes in client errors
+1 -1
View File
@@ -29,7 +29,7 @@ export const render = async (node: React.ReactNode, options?: Options) => {
progressiveChunkSize: Number.POSITIVE_INFINITY,
onError(error) {
// Throw immediately when an error occurs to prevent CSR fallback
throw error;
reject(error);
},
},
)