FastAPI-Backend und React-Frontend mit Konten, Sendungsverfolgung, Projekt-Artikeln, Vorrat & Einkauf mit Rezeptabgleich, Reise-Weltkarte, Kanban-Projekten mit Priorität, Server-Monitoring und den Designs Matrix und Blackwall. Betrieb per Docker hinter nginx (siehe DEPLOY.md). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
16 lines
380 B
JavaScript
16 lines
380 B
JavaScript
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,
|
|
},
|
|
},
|
|
});
|