NietTeVertrouwen
NietTeVertrouwen
NNuxt
Created by NietTeVertrouwen on 3/11/2025 in #❓・help
Setting the base pages path in layers config
In my main nuxt.config.ts file, I'm extending two layers like this:
extends: [
'./app/layers/candidates',
'./app/layers/clients'
]
extends: [
'./app/layers/candidates',
'./app/layers/clients'
]
Is it possible, in the config file of those layers, to set the base route path so that all pages inside the candidates layer automatically get prefixed with /candidates and those within clients with /clients? The candidates and clients layers will also have sub-layers inside them for further splitting up our code. If my question requires a more thorough example, please let me know!
8 replies