diff --git a/packages/nitro/src/server/vfs.ts b/packages/nitro/src/server/vfs.ts index 3dcfc14669..f5e40f233c 100644 --- a/packages/nitro/src/server/vfs.ts +++ b/packages/nitro/src/server/vfs.ts @@ -4,10 +4,11 @@ import { NitroContext } from '..' export function handleVfs (ctx: NitroContext): Handle { return (req) => { if (req.url === '/') { - return '' + const items = Object.keys(ctx.vfs) + .filter(i => !i.startsWith('#')) + .map(key => `
  • ${key.replace(ctx._nuxt.rootDir, '')}
  • `) + .join('\n') + return `` } const param = decodeURIComponent(req.url.slice(1)) if (param in ctx.vfs) {