Using relative URL for the websocket.

This commit is contained in:
Filipi Fuchter
2025-06-15 10:49:25 -03:00
parent eceaf8a46b
commit 80ce097f90
2 changed files with 2 additions and 3 deletions

View File

@@ -6,9 +6,8 @@ export default defineConfig({
plugins: [react()],
server: {
proxy: {
// Proxy /api requests to the backend server
'/ws': {
target: 'http://0.0.0.0:8765', // Replace with your backend URL
target: 'ws://0.0.0.0:8765', // Replace with your backend URL
changeOrigin: true,
},
},