# Source: https://nuxt.com/raw/docs/3.x/examples/advanced/config-extends.md

# Source: https://nuxt.com/raw/docs/4.x/examples/advanced/config-extends.md

# Layers

> This example shows how to use the extends key in `nuxt.config.ts`.

This example shows how to use the `extends` key in `nuxt.config.ts` to use the `base/` directory as a base Nuxt application, and use its components, composables or config and override them if necessary.

<read-more to="/docs/getting-started/layers">



</read-more>

<sandbox branch="main" dir="examples/advanced/config-extends" file="nuxt.config.ts" repo="nuxt/examples">



</sandbox>