Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/static/src/ssr/entry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ export async function renderHTML(
});
}
} catch (e) {
// In this case, RSC payload is still sent to client and we let client render from scratch anyway.
if (options.build) {
// In build mode, abort the build so the error is not silently swallowed.
throw e;
}
// In dev mode, RSC payload is still sent to client and we let client render from scratch anyway.
// This triggers the error boundary on client side.
status = 500;
htmlStream = await renderToReadableStream(
Expand Down