feat(webapp): add socket to vite server proxy

This commit is contained in:
Ahmed Bouhuolia
2026-01-08 22:43:42 +02:00
parent f0fae7d148
commit 3f2ab6e8f0

View File

@@ -54,6 +54,11 @@ export default defineConfig(({ mode }) => {
target: env.VITE_API_PROXY_TARGET || 'http://localhost:3000',
changeOrigin: true,
},
'/socket': {
target: env.VITE_API_PROXY_TARGET || 'http://localhost:3000',
changeOrigin: true,
ws: true,
},
},
},
build: {