fix: add support for hot reloading

This commit is contained in:
Dominik Koch
2025-06-19 22:54:11 +02:00
parent 3d061e1961
commit cf21fca54f
2 changed files with 13 additions and 1 deletions

View File

@@ -45,6 +45,8 @@ services:
- root-node-modules:/app/node_modules
environment:
- NODE_ENV=development
- CHOKIDAR_USEPOLLING=true
- WATCHPACK_POLLING=true
depends_on:
- shared
restart: unless-stopped

View File

@@ -12,6 +12,16 @@ export default defineConfig({
},
},
server: {
allowedHosts: ["dev.useautumn.com", "client.dev.useautumn.com"],
host: '0.0.0.0', // Required for Docker
port: 3000,
strictPort: true,
allowedHosts: ["dev.useautumn.com", "client.dev.useautumn.com", "localhost"],
watch: {
usePolling: true, // Required for file watching in Docker on Windows
interval: 1000,
},
hmr: {
port: 3000,
},
},
});