import react from "@vitejs/plugin-react"; import { defineConfig } from "vite"; // Dev: the API runs on :8000 (uvicorn / docker compose); /api is proxied so the app needs no CORS. // Build output is a static bundle (dist/) — the same bundle is wrapped by Capacitor for the mobile app. export default defineConfig({ plugins: [react()], base: "./", server: { port: 5173, proxy: { "/api": { target: process.env.API_TARGET ?? "http://127.0.0.1:8000", changeOrigin: true } }, }, });