Spaces:
Running
Running
| import { defineConfig } from "vite"; | |
| import react from "@vitejs/plugin-react"; | |
| const devApiTarget = process.env.VITE_DEV_API_TARGET || "http://127.0.0.1:7860"; | |
| export default defineConfig({ | |
| plugins: [react()], | |
| base: "/ui/", | |
| server: { | |
| host: "0.0.0.0", | |
| port: 5173, | |
| strictPort: true, | |
| proxy: { | |
| "/api": { | |
| target: devApiTarget, | |
| changeOrigin: true, | |
| }, | |
| }, | |
| }, | |
| }); | |