feat(ssr): enable `throwUnhandledErrorInProduction` (#5419)

pull/5421/head
btea 1 week ago committed by GitHub
parent 09f9672ee1
commit a6573ff60c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -98,6 +98,12 @@ export async function createApp() {
}
})
// set before enhanceApp so users can still disable it or take over with their own errorHandler;
// unhandled errors then fail the build instead of silently shipping broken pages
if (import.meta.env.SSR) {
app.config.throwUnhandledErrorInProduction = true
}
if (Theme.enhanceApp) {
await Theme.enhanceApp({
app,

Loading…
Cancel
Save