mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 15:50:32 +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
|
ignored: isIgnored
|
||||||
},
|
},
|
||||||
hmr: {
|
hmr: {
|
||||||
|
// https://github.com/nuxt/framework/issues/4191
|
||||||
|
protocol: 'ws',
|
||||||
clientPort: hmrPort,
|
clientPort: hmrPort,
|
||||||
port: hmrPort
|
port: hmrPort
|
||||||
},
|
},
|
||||||
|
@ -75,6 +75,8 @@ export async function bundle (nuxt: Nuxt) {
|
|||||||
ignored: isIgnored
|
ignored: isIgnored
|
||||||
},
|
},
|
||||||
hmr: {
|
hmr: {
|
||||||
|
// https://github.com/nuxt/framework/issues/4191
|
||||||
|
protocol: 'ws',
|
||||||
clientPort: hmrPort,
|
clientPort: hmrPort,
|
||||||
port: 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`))
|
.then(() => logger.info(`Vite ${env.isClient ? 'client' : 'server'} warmed up in ${Date.now() - start}ms`))
|
||||||
.catch(logger.error)
|
.catch(logger.error)
|
||||||
})
|
})
|
||||||
|
|
||||||
await buildClient(ctx)
|
await buildClient(ctx)
|
||||||
await buildServer(ctx)
|
await buildServer(ctx)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user