import { defineConfig } from 'vite'; export default defineConfig({ server: { port: 5173, // You can specify the port for the dev server proxy: { // This will proxy any requests starting with /socket.io // to your backend server running on port 3000. '/socket.io': { target: 'http://localhost:3000', ws: true, // This is important for WebSockets }, }, }, });