import { defineConfig, searchForWorkspaceRoot } from "vite"; import react from "@vitejs/plugin-react"; import { fileURLToPath } from "node:url"; export default defineConfig({ plugins: [react()], server: { fs: { allow: [ searchForWorkspaceRoot(process.cwd()), fileURLToPath(new URL("../web/public", import.meta.url)) ] }, proxy: { "/portal-api": "http://127.0.0.1:20310", "/api/v1": "http://127.0.0.1:20310", "/open-api": "http://127.0.0.1:20310" } } });