diff --git a/src/commands/analyze.ts b/src/commands/analyze.ts index 6ced18bb..6667d6f1 100644 --- a/src/commands/analyze.ts +++ b/src/commands/analyze.ts @@ -57,6 +57,9 @@ export default defineCommand({ const outDir = nuxt.options.nitro.output?.dir || join(nuxt.options.rootDir, '.output') + nuxt.options.build.analyze.filename = + nuxt.options.build.analyze.filename || join(analyzeDir, 'client.html') + await clearDir(analyzeDir) await buildNuxt(nuxt)