import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' import tailwindcss from '@tailwindcss/vite' // https://vite.dev/config/ export default defineConfig({ plugins: [react(), tailwindcss(),], server: { host: '0.0.0.0', port: 5173, watch: { usePolling: true, }, hmr: { clientPort: 5173, }, proxy: { '/api': { target: 'http://backend:3000', changeOrigin: true, }, '/socket.io': { target: 'http://backend:3000', changeOrigin: true, ws: true, } } }, preview: { host: '0.0.0.0', port: 5173, } })