vue: activate HMR on localhost:8080

This commit is contained in:
ArneBo 2024-10-29 12:49:05 +01:00 committed by upsiflu
parent 6db427f463
commit a7407d102e
1 changed files with 5 additions and 5 deletions

View File

@ -58,13 +58,13 @@ export default defineConfig(({ mode }) => ({
vueDevTools(),
],
server: {
host: '0.0.0.0',
port: 8080,
port: +(process.env.VUE_PORT ?? 8080),
hmr: {
host: 'localhost',
port: 24678,
protocol: 'ws'
clientPort: +(process.env.VUE_PORT ?? 8080)
},
watch: {
usePolling: true,
}
},
resolve: {
alias: [