SynthScope / interface /frontend /vite.config.js
SMSD75's picture
Update SynthScope Space from the GitHub repository
cd24b4a verified
Raw History Blame Contribute Delete
524 Bytes
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
// In dev, proxy /api to the FastAPI backend (default :8000). The production build emits to
// ../frontend/dist, which the backend serves directly.
export default defineConfig({
plugins: [react()],
server: {
port: 5173,
proxy: {
"/api": {
target: process.env.SYNTHSCOPE_BACKEND || "http://127.0.0.1:8000",
changeOrigin: true,
},
},
},
build: {
outDir: "dist",
emptyOutDir: true,
},
});