mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(nuxt): empty nitro buildDir
in dev mode (#29068)
This commit is contained in:
parent
111a3c25a3
commit
466a98b6e0
@ -529,11 +529,11 @@ export async function initNitro (nuxt: Nuxt & { _nitro?: Nitro }) {
|
|||||||
// nuxt build/dev
|
// nuxt build/dev
|
||||||
nuxt.hook('build:done', async () => {
|
nuxt.hook('build:done', async () => {
|
||||||
await nuxt.callHook('nitro:build:before', nitro)
|
await nuxt.callHook('nitro:build:before', nitro)
|
||||||
|
await prepare(nitro)
|
||||||
if (nuxt.options.dev) {
|
if (nuxt.options.dev) {
|
||||||
return build(nitro)
|
return build(nitro)
|
||||||
}
|
}
|
||||||
|
|
||||||
await prepare(nitro)
|
|
||||||
await prerender(nitro)
|
await prerender(nitro)
|
||||||
|
|
||||||
logger.restoreAll()
|
logger.restoreAll()
|
||||||
|
Loading…
Reference in New Issue
Block a user