mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-21 07:59:33 +00:00
fix: set clientPort
This commit is contained in:
parent
1c63db3be9
commit
36bb5a46d4
@ -109,6 +109,9 @@ export async function buildClient (ctx: ViteBuildContext) {
|
|||||||
if (clientConfig.server && clientConfig.server.hmr !== false) {
|
if (clientConfig.server && clientConfig.server.hmr !== false) {
|
||||||
clientConfig.server = defu(clientConfig.server, <ServerOptions> {
|
clientConfig.server = defu(clientConfig.server, <ServerOptions> {
|
||||||
https: ctx.nuxt.options.devServer.https,
|
https: ctx.nuxt.options.devServer.https,
|
||||||
|
hmr: {
|
||||||
|
clientPort: ctx.nuxt.options.devServer.port,
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user