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

Commit

Permalink
fix(vite): disable server warmup with vite-node (#7512)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 authored Sep 14, 2022
1 parent 326d628 commit 09c42fd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/vite/src/vite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`))
Expand Down

0 comments on commit 09c42fd

Please sign in to comment.