import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; import svgo from "vite-plugin-svgo"; import svgr from "vite-plugin-svgr"; export default defineConfig({ plugins: [react(), svgo(), svgr()], optimizeDeps: { include: ["recharts"], }, server: { port: 5173, host: "0.0.0.0", allowedHosts: ["dev.tombutcher.work"], proxy: { "/auth": { target: "http://localhost:3001", changeOrigin: true }, "/api": { target: "http://localhost:3001", changeOrigin: true }, "/socket.io": { target: "http://localhost:3001", ws: true }, }, }, });