From c51272099f22f6c3b06b9551e1f87c0daff02151 Mon Sep 17 00:00:00 2001 From: Michael Brevard Date: Tue, 23 Jan 2024 18:12:59 +0200 Subject: [PATCH] docs: add explanation about layout usage in `error.vue` (#25396) --- docs/2.guide/2.directory-structure/3.error.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/2.guide/2.directory-structure/3.error.md b/docs/2.guide/2.directory-structure/3.error.md index ade92b7179..55a71bdd4c 100644 --- a/docs/2.guide/2.directory-structure/3.error.md +++ b/docs/2.guide/2.directory-structure/3.error.md @@ -23,7 +23,7 @@ const props = defineProps({ ``` ::callout -Although it is called an 'error page' it's not a route and shouldn't be placed in your `~/pages` directory. For the same reason, you shouldn't use `definePageMeta` within this page. +Although it is called an 'error page' it's not a route and shouldn't be placed in your `~/pages` directory. For the same reason, you shouldn't use `definePageMeta` within this page. That being said, you can still use layouts in the error file, by utilizing the [`NuxtLayout`](/docs/api/components/nuxt-layout) component and specifying the name of the layout. :: The error page has a single prop - `error` which contains an error for you to handle.