mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +00:00
fix(vite): disable server warmup with vite-node
(#7512)
This commit is contained in:
parent
326d62803b
commit
09c42fd886
@ -112,7 +112,11 @@ export async function bundle (nuxt: Nuxt) {
|
||||
}
|
||||
})
|
||||
|
||||
if (nuxt.options.vite.warmupEntry !== false) {
|
||||
if (
|
||||
nuxt.options.vite.warmupEntry !== false &&
|
||||
// https://github.com/nuxt/framework/issues/7510
|
||||
!(env.isServer && ctx.nuxt.options.vite.devBundler !== 'legacy')
|
||||
) {
|
||||
const start = Date.now()
|
||||
warmupViteServer(server, [join('/@fs/', ctx.entry)], env.isServer)
|
||||
.then(() => logger.info(`Vite ${env.isClient ? 'client' : 'server'} warmed up in ${Date.now() - start}ms`))
|
||||
|
Loading…
Reference in New Issue
Block a user