fix(nuxi): update analzye main handler (#8339)

This commit is contained in:
pooya parsa 2022-10-19 17:29:20 +02:00 committed by GitHub
parent e79d72cd06
commit 9415f54a1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,12 +48,12 @@ export default defineNuxtCommand({
app.use('/client', serveFile(join(statsDir, 'client.html'))) app.use('/client', serveFile(join(statsDir, 'client.html')))
app.use('/nitro', serveFile(join(statsDir, 'nitro.html'))) app.use('/nitro', serveFile(join(statsDir, 'nitro.html')))
app.use(() => `<!DOCTYPE html> app.use(eventHandler(() => `<!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>Nuxt Bundle Stats (experimental)</title> <title>Nuxt Bundle Stats (experimental)</title>
</head> </head>
<h1>Nuxt Bundle Stats (experimental)</h1> <h1>Nuxt Bundle Stats (experimental)</h1>
<ul> <ul>
<li> <li>
@ -63,7 +63,8 @@ export default defineNuxtCommand({
<a href="/client">Client bundle stats</a> <a href="/client">Client bundle stats</a>
</li> </li>
</ul> </ul>
</html>`) </html>
`))
await listen(toNodeListener(app)) await listen(toNodeListener(app))