diff --git a/packages/nuxt/src/core/nuxt.ts b/packages/nuxt/src/core/nuxt.ts index 0c109300f0..2a11f2f5a2 100644 --- a/packages/nuxt/src/core/nuxt.ts +++ b/packages/nuxt/src/core/nuxt.ts @@ -51,7 +51,7 @@ import { randomUUID } from 'node:crypto' export function createNuxt (options: NuxtOptions): Nuxt { const hooks = createHooks() - const name = randomUUID() + const name = randomUUID() // TODO find project name in package json instead const nuxt: Nuxt = { _version: version, options, @@ -63,6 +63,7 @@ export function createNuxt (options: NuxtOptions): Nuxt { close: () => hooks.callHook('close', nuxt), vfs: {}, apps: {}, + name } hooks.hookOnce('close', () => { hooks.removeAllHooks() })