From 9415f54a1ab0e2ec1f29d384c91a0dbe6f08a95d Mon Sep 17 00:00:00 2001 From: pooya parsa Date: Wed, 19 Oct 2022 17:29:20 +0200 Subject: [PATCH] fix(nuxi): update analzye main handler (#8339) --- packages/nuxi/src/commands/analyze.ts | 33 ++++++++++++++------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/packages/nuxi/src/commands/analyze.ts b/packages/nuxi/src/commands/analyze.ts index 8b07ba1a59..43b5be5d36 100644 --- a/packages/nuxi/src/commands/analyze.ts +++ b/packages/nuxi/src/commands/analyze.ts @@ -48,22 +48,23 @@ export default defineNuxtCommand({ app.use('/client', serveFile(join(statsDir, 'client.html'))) app.use('/nitro', serveFile(join(statsDir, 'nitro.html'))) - app.use(() => ` - - - -Nuxt Bundle Stats (experimental) - -

Nuxt Bundle Stats (experimental)

- -`) + app.use(eventHandler(() => ` + + + + Nuxt Bundle Stats (experimental) + +

Nuxt Bundle Stats (experimental)

+ + + `)) await listen(toNodeListener(app))