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
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Nov 8, 2022
1 parent 8e4068b commit 8801fca
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 8801fca

Please sign in to comment.