Spaces:
Running
Running
File size: 449 Bytes
69f2236 bc45e54 69f2236 bc45e54 69f2236 054d73a 69f2236 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 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,
},
},
},
});
|