diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index e9fdcc9..d6fea04 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -10,8 +10,8 @@ export default defineConfig({ }, server: { proxy: { - // Dev: /api → FastAPI-Backend - "/api": { target: "http://127.0.0.1:9000", changeOrigin: true }, + // Dev: /api → FastAPI-Backend (Override via MC_API_TARGET, z.B. die Box) + "/api": { target: process.env.MC_API_TARGET || "http://127.0.0.1:9000", changeOrigin: true }, }, }, build: { outDir: "dist" },