Layers

Source
This example shows how to use the extends key in `nuxt.config.ts`.
nuxt.config.ts
Open docs
export default defineNuxtConfig({
  extends: [
    '@nuxt/examples-ui',
    './ui',
    './base',
  ],
  runtimeConfig: {
    public: {
      theme: {
        primaryColor: 'user_primary',
      },
    },
  },

  compatibilityDate: '2024-04-03',
})
https://config-extends.example.nuxt.space

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 in Docs > Getting Started > Layers.