add vite hmr to traefik reverse proxy

This commit is contained in:
Gregor Vostrak
2024-03-21 13:51:28 +01:00
parent fb04cff7c1
commit ab9a1d2fab
3 changed files with 19 additions and 3 deletions

View File

@@ -24,4 +24,11 @@ export default defineConfig({
lintCommand: 'eslint "./**/*.{ts,vue}"',
}),
],
server: {
host: true,
hmr: {
host: process.env.VITE_HOST_NAME,
clientPort: 80,
},
},
});