Skip to content

Commit

Permalink
docs: add fatal on createError
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Oct 12, 2023
1 parent 96296c3 commit 827f2f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pages/[...slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ definePageMeta({
const { data: page } = await useAsyncData(route.path, () => queryContent(route.path).findOne())
if (!page.value) {
throw createError({ statusCode: 404, statusMessage: 'Page not found' })
throw createError({ statusCode: 404, statusMessage: 'Page not found', fatal: true })
}
const { data: surround } = await useAsyncData(`${route.path}-surround`, () => {
Expand Down

1 comment on commit 827f2f4

@vercel
Copy link

@vercel vercel bot commented on 827f2f4 Oct 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./

ui-git-dev-nuxt-js.vercel.app
ui-nuxt-js.vercel.app
ui.nuxt.com

Please sign in to comment.