NuxtN
Nuxt7mo ago
4 replies
dankell.

nuxt.config and layers

Looking structuring out project and it feels like Layers will be useful to keep the different functionality of the project organised.

I am however struggling with what I need to be putting in the different nuxt.config filesm and whether I even need to have multiple config files.

For example this is a hypothetical tree:

/app/
    app.vue
/layers
    /base
        /app  -> contains the layout of the application
        nuxt.config
    /jobs
        /app  -> contains pages and logic relating to projects
        nuxt.config
    /peopl
        /app  -> contains pages and logic relating to people
        nuxt.config
nuxt.config.ts

At the moment that is 4 nuxt.config files. Which at the moment are all identical. I can see the need for a layer to have it's own config file if it uses a different plugin, but what should I have I'm essentially defining all that at base level?
Was this page helpful?