Closed kcybul closed 2 months ago
The answer is:
to enable websockets on vite proxy add ws: true
like:
export default defineConfig({
server: {
proxy: {
// Proxying websockets or socket.io: ws://localhost:5173/socket.io -> ws://localhost:5174/socket.io
'/socket.io': {
target: 'ws://localhost:5174',
ws: true,
},
},
},
})
Hi,
I'm trying to containerize this solution and run it on Kubernetes. Unfortunately app is crashing due to Socket issue:
Any idea which app part can lead to this exception ??