Files
ExcaliDash/frontend/vite.config.ts
T
Zimeng Xiong 4e8beae0ee MVP
2025-11-21 19:18:07 -08:00

17 lines
350 B
TypeScript

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
server: {
proxy: {
"/api": {
target: "http://localhost:8000",
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ""),
},
},
},
});