From 827f2f45d99a954f7e63ad7799136f30faa765df Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Thu, 12 Oct 2023 11:47:12 +0200 Subject: [PATCH] docs: add `fatal` on `createError` --- docs/pages/[...slug].vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pages/[...slug].vue b/docs/pages/[...slug].vue index fd0d002fe7..34d0dc6e0d 100644 --- a/docs/pages/[...slug].vue +++ b/docs/pages/[...slug].vue @@ -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`, () => {