Skip to content
This repository was archived by the owner on Apr 6, 2023. It is now read-only.

Commit 09c42fd

Browse files
authored
fix(vite): disable server warmup with vite-node (#7512)
1 parent 326d628 commit 09c42fd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/vite/src/vite.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,11 @@ export async function bundle (nuxt: Nuxt) {
112112
}
113113
})
114114

115-
if (nuxt.options.vite.warmupEntry !== false) {
115+
if (
116+
nuxt.options.vite.warmupEntry !== false &&
117+
// https://github.com/nuxt/framework/issues/7510
118+
!(env.isServer && ctx.nuxt.options.vite.devBundler !== 'legacy')
119+
) {
116120
const start = Date.now()
117121
warmupViteServer(server, [join('/@fs/', ctx.entry)], env.isServer)
118122
.then(() => logger.info(`Vite ${env.isClient ? 'client' : 'server'} warmed up in ${Date.now() - start}ms`))

0 commit comments

Comments
 (0)