mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +00:00
fix(nuxt3): respect custom public dir in layers (#4477)
This commit is contained in:
parent
975ec0c417
commit
78fcbcf16f
@ -45,7 +45,7 @@ export async function initNitro (nuxt: Nuxt) {
|
|||||||
dir: resolve(nuxt.options.buildDir, 'dist/client')
|
dir: resolve(nuxt.options.buildDir, 'dist/client')
|
||||||
},
|
},
|
||||||
...nuxt.options._layers
|
...nuxt.options._layers
|
||||||
.map(layer => join(layer.config.srcDir, 'public'))
|
.map(layer => join(layer.config.srcDir, layer.config.dir?.public || 'public'))
|
||||||
.filter(dir => existsSync(dir))
|
.filter(dir => existsSync(dir))
|
||||||
.map(dir => ({ dir }))
|
.map(dir => ({ dir }))
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user