From 7ed5bd4b2c15cb50a66e6adeb01cae56815b384f Mon Sep 17 00:00:00 2001 From: Santiago A Date: Fri, 12 Jul 2024 14:24:31 +0200 Subject: [PATCH] docs: add info about `layers/` directory (#28128) --- docs/1.getting-started/9.layers.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/1.getting-started/9.layers.md b/docs/1.getting-started/9.layers.md index 66321b1471..a191efdf2f 100644 --- a/docs/1.getting-started/9.layers.md +++ b/docs/1.getting-started/9.layers.md @@ -18,7 +18,11 @@ One of the core features of Nuxt is the layers and extending support. You can ex ## Usage -You can extend a layer by adding the [extends](/docs/api/nuxt-config#extends) property to the [`nuxt.config.ts`](/docs/guide/directory-structure/nuxt-config) file. +By default, any layers within your project in the `~/layers` directory will be automatically registered as layers in your project + +::note Layer auto-registration was introduced in Nuxt v3.12.0 :: + +In addition, you can extend from a layer by adding the [extends](/docs/api/nuxt-config#extends) property to your [`nuxt.config`](/docs/guide/directory-structure/nuxt-config) file. ```ts [nuxt.config.ts] export default defineNuxtConfig({