This repository has been archived on 2026-10-08. You can view files and clone it, but cannot push or open issues or pull requests.
allotment/packages/client/vite.config.js

22 lines
603 B
JavaScript

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 },
},
},
});