Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
fix(nuxt): do not render page if we are throwing error (#8821)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Nov 9, 2022
1 parent 4d1be08 commit 5a32927
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/nuxt/src/pages/runtime/router.ts
Expand Up @@ -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 }
Expand Down

0 comments on commit 5a32927

Please sign in to comment.