fix: set clientPort

This commit is contained in:
GHOST 2023-06-04 00:21:10 +00:00
parent 1c63db3be9
commit 36bb5a46d4

View File

@ -109,6 +109,9 @@ export async function buildClient (ctx: ViteBuildContext) {
if (clientConfig.server && clientConfig.server.hmr !== false) {
clientConfig.server = defu(clientConfig.server, <ServerOptions> {
https: ctx.nuxt.options.devServer.https,
hmr: {
clientPort: ctx.nuxt.options.devServer.port,
}
})
}