mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(nuxt): do not render page if we are throwing error (#8821)
This commit is contained in:
parent
4d1be089d7
commit
5a32927935
@ -157,7 +157,8 @@ export default defineNuxtPlugin(async (nuxtApp) => {
|
||||
statusCode: 404,
|
||||
statusMessage: `Page Not Found: ${initialURL}`
|
||||
})
|
||||
return callWithNuxt(nuxtApp, showError, [error])
|
||||
await callWithNuxt(nuxtApp, showError, [error])
|
||||
return false
|
||||
}
|
||||
}
|
||||
if (result || result === false) { return result }
|
||||
|
Loading…
Reference in New Issue
Block a user