mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +00:00
fix(nuxt): await prerender:routes
hook (#22247)
This commit is contained in:
parent
3cb10d6dc8
commit
9742bffac2
@ -291,7 +291,7 @@ export async function initNitro (nuxt: Nuxt & { _nitro?: Nitro }) {
|
||||
// Connect hooks
|
||||
nuxt.hook('close', () => nitro.hooks.callHook('close'))
|
||||
nitro.hooks.hook('prerender:routes', (routes) => {
|
||||
nuxt.callHook('prerender:routes', { routes })
|
||||
return nuxt.callHook('prerender:routes', { routes })
|
||||
})
|
||||
|
||||
// Enable runtime compiler client side
|
||||
|
Loading…
Reference in New Issue
Block a user