mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 07:32:01 +00:00
fix(nuxi): update analzye main handler (#8339)
This commit is contained in:
parent
e79d72cd06
commit
9415f54a1a
@ -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))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user