feat(docs): add note for nuxt 2

This commit is contained in:
Andrey Yolkin 2023-08-30 00:29:03 +03:00
parent c1db6321a8
commit ecab9f2d3d
1 changed files with 5 additions and 1 deletions

View File

@ -1496,7 +1496,11 @@ export default defineNuxtModule({
### `addLayout`
Register template as layout and add it to the layouts array.
Register template as layout and add it to the layouts.
::alert{type=info icon=👉}
In Nuxt 2 `error` layout can also be registered using this utility. In Nuxt 3 `error` layout [replaced](docs/getting-started/error-handling#rendering-an-error-page) with `error.vue` page in project root.
::
#### Type