ClassLens-dev / chatkit /frontend /vite.config.ts
chih.yikuan
Redesign ClassLens v2: 3-step exam analysis workflow
bc45e54
Raw
History Blame Contribute Delete
449 Bytes
import * as path from "node:path";
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
const backendTarget = process.env.BACKEND_URL ?? "http://127.0.0.1:8000";
export default defineConfig({
envDir: path.resolve(__dirname, ".."),
plugins: [react()],
server: {
port: 3003,
host: "0.0.0.0",
proxy: {
"/api": {
target: backendTarget,
changeOrigin: true,
},
},
},
});