import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; // Die React-App wird in Produktion unter /app/ ausgeliefert (base), die // Hugo-Marketing-Site liegt unter /. Im Dev läuft Vite auf :5273 und proxt // /api → Backend, damit kein CORS nötig ist und die URLs identisch bleiben. export default defineConfig({ base: "/app/", plugins: [react()], server: { port: 5273, proxy: { "/api": "http://localhost:8787", }, }, });