15 lines
320 B
JavaScript
15 lines
320 B
JavaScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
proxy: {
|
|
"/socket.io": {
|
|
target: "http://localhost:8081",
|
|
changeOrigin: true,
|
|
ws: true, // Enables WebSocket proxying
|
|
},
|
|
},
|
|
},
|
|
}); |