Spaces:
Sleeping
Sleeping
Download interface/frontend/vite.config.js from SMSD75/SynthScope: direct link, hf CLI and curl.
- Browser
- Download file 524 Bytes
-
https://huggingface.co/spaces/SMSD75/SynthScope/resolve/main/interface/frontend/vite.config.js
- Command line
-
hf download hf://spaces/SMSD75/SynthScope/interface/frontend/vite.config.js
-
curl -L -o vite.config.js https://huggingface.co/spaces/SMSD75/SynthScope/resolve/main/interface/frontend/vite.config.js
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, | |
| }, | |
| }); | |