mirror of https://github.com/nuxt/nuxt.git
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
|
// Connect hooks
|
||||||
nuxt.hook('close', () => nitro.hooks.callHook('close'))
|
nuxt.hook('close', () => nitro.hooks.callHook('close'))
|
||||||
nitro.hooks.hook('prerender:routes', (routes) => {
|
nitro.hooks.hook('prerender:routes', (routes) => {
|
||||||
nuxt.callHook('prerender:routes', { routes })
|
return nuxt.callHook('prerender:routes', { routes })
|
||||||
})
|
})
|
||||||
|
|
||||||
// Enable runtime compiler client side
|
// Enable runtime compiler client side
|
||||||
|
|
Loading…
Reference in New Issue