mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(vite): prefer hmr ws
protocol (#4203)
This commit is contained in:
parent
396472778f
commit
26f8d8eb8f
@ -106,6 +106,8 @@ async function bundle (nuxt: Nuxt, builder: any) {
|
||||
ignored: isIgnored
|
||||
},
|
||||
hmr: {
|
||||
// https://github.com/nuxt/framework/issues/4191
|
||||
protocol: 'ws',
|
||||
clientPort: hmrPort,
|
||||
port: hmrPort
|
||||
},
|
||||
|
@ -75,6 +75,8 @@ export async function bundle (nuxt: Nuxt) {
|
||||
ignored: isIgnored
|
||||
},
|
||||
hmr: {
|
||||
// https://github.com/nuxt/framework/issues/4191
|
||||
protocol: 'ws',
|
||||
clientPort: hmrPort,
|
||||
port: hmrPort
|
||||
},
|
||||
@ -106,7 +108,6 @@ export async function bundle (nuxt: Nuxt) {
|
||||
.then(() => logger.info(`Vite ${env.isClient ? 'client' : 'server'} warmed up in ${Date.now() - start}ms`))
|
||||
.catch(logger.error)
|
||||
})
|
||||
|
||||
await buildClient(ctx)
|
||||
await buildServer(ctx)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user