Fix Vite HMR WebSocket Connection Issue

- Disabled HMR in production environment to prevent WebSocket conflicts
- HMR not needed in reverse proxy setup with systemd service
- Eliminates 'failed to connect to websocket' errors in browser console
- Cleaner production deployment without development-specific features
This commit is contained in:
DGSoft 2025-12-10 18:50:54 +01:00
parent 200579c411
commit f755b1bac1

View File

@ -11,6 +11,7 @@ export default defineConfig({
'192.168.0.12', '192.168.0.12',
'localhost' 'localhost'
], ],
hmr: false, // HMR in Production-Umgebung deaktivieren
proxy: { proxy: {
'/api': { '/api': {
target: 'http://192.168.0.12:8000', target: 'http://192.168.0.12:8000',