mirror of
https://github.com/OHV-IT/collabrix.git
synced 2025-12-16 00:58:37 +01:00
Disable Vite HMR for Production Environment
- Completely disable Hot Module Replacement in production - HMR incompatible with reverse proxy setup - Eliminates WebSocket connection errors in browser - Cleaner production deployment without dev features - No more 'failed to connect to websocket' messages
This commit is contained in:
parent
f755b1bac1
commit
5966b9b3f3
@ -1,6 +1,9 @@
|
|||||||
import { defineConfig } from 'vite'
|
import { defineConfig } from 'vite'
|
||||||
import react from '@vitejs/plugin-react'
|
import react from '@vitejs/plugin-react'
|
||||||
|
|
||||||
|
import { defineConfig } from 'vite'
|
||||||
|
import react from '@vitejs/plugin-react'
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [react()],
|
plugins: [react()],
|
||||||
server: {
|
server: {
|
||||||
@ -11,7 +14,8 @@ export default defineConfig({
|
|||||||
'192.168.0.12',
|
'192.168.0.12',
|
||||||
'localhost'
|
'localhost'
|
||||||
],
|
],
|
||||||
hmr: false, // HMR in Production-Umgebung deaktivieren
|
// HMR komplett deaktivieren - nicht kompatibel mit Reverse Proxy
|
||||||
|
hmr: false,
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api': {
|
'/api': {
|
||||||
target: 'http://192.168.0.12:8000',
|
target: 'http://192.168.0.12:8000',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user