import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; // Im Entwicklungsmodus leitet Vite API- und Bild-Anfragen an das Python-Backend weiter const backend = process.env.BACKEND_URL || 'http://localhost:3000'; export default defineConfig({ plugins: [react()], server: { proxy: { '/api': backend, '/uploads': backend, }, }, });