Skip to content

Commit

Permalink
docs: add info about layers/ directory (nuxt#28128)
Browse files Browse the repository at this point in the history
  • Loading branch information
santiagoaloi authored Jul 12, 2024
1 parent 082a6f7 commit 7ed5bd4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/1.getting-started/9.layers.md
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 7ed5bd4

Please sign in to comment.