mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(nuxt): pass analyze options through to nitro (#6871)
This commit is contained in:
parent
51dc73628c
commit
45f39be4fa
@ -22,6 +22,11 @@ export async function initNitro (nuxt: Nuxt) {
|
||||
dev: nuxt.options.dev,
|
||||
preset: nuxt.options.dev ? 'nitro-dev' : undefined,
|
||||
buildDir: nuxt.options.buildDir,
|
||||
analyze: nuxt.options.build.analyze && {
|
||||
template: 'treemap',
|
||||
projectRoot: nuxt.options.rootDir,
|
||||
filename: join(nuxt.options.rootDir, '.nuxt/stats', '{name}.html')
|
||||
},
|
||||
scanDirs: nuxt.options._layers.map(layer => layer.config.srcDir).filter(Boolean).map(dir => join(dir!, 'server')),
|
||||
renderer: resolve(distDir, 'core/runtime/nitro/renderer'),
|
||||
errorHandler: resolve(distDir, 'core/runtime/nitro/error'),
|
||||
|
Loading…
Reference in New Issue
Block a user