Attempt #6 to fix CORS issue and docker build.
This commit is contained in:
@@ -1,15 +1,7 @@
|
||||
import { defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react";
|
||||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
server: {
|
||||
proxy: {
|
||||
"/socket.io": {
|
||||
target: "http://localhost:8081",
|
||||
changeOrigin: true,
|
||||
ws: true, // Enables WebSocket proxying
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
})
|
||||
Reference in New Issue
Block a user