mirror of https://github.com/nuxt/nuxt.git
fix(nuxi): update analzye main handler (#8339)
This commit is contained in:
parent
e79d72cd06
commit
9415f54a1a
|
@ -48,7 +48,7 @@ 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">
|
||||||
|
@ -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))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue