From 5d7f99be1d85692513fd4270284523f3cf71681b Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Thu, 3 Feb 2022 12:12:40 +0000 Subject: [PATCH] fix(bridge): add `nitro:generate` hook (#3044) --- packages/bridge/src/nitro.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/bridge/src/nitro.ts b/packages/bridge/src/nitro.ts index 7e54224a8d..73f1e4297f 100644 --- a/packages/bridge/src/nitro.ts +++ b/packages/bridge/src/nitro.ts @@ -46,6 +46,7 @@ export function setupNitroBridge () { nuxt.addHooks(nitroContext.nuxtHooks) nuxt.hook('close', () => nitroContext._internal.hooks.callHook('close')) nitroContext._internal.hooks.hook('nitro:document', template => nuxt.callHook('nitro:document', template)) + nitroContext._internal.hooks.hook('nitro:generate', ctx => nuxt.callHook('nitro:generate', ctx)) nuxt.addHooks(nitroDevContext.nuxtHooks) nuxt.hook('close', () => nitroDevContext._internal.hooks.callHook('close'))