This repository has been archived on 2026-05-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2026-04-03 21:41:19 +02:00

20 lines
433 B
TypeScript

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [react()],
server: {
port: 5173,
proxy: {
// API-Calls im Dev-Mode direkt an das Backend weiterleiten
'/api': {
target: 'http://localhost:3001',
changeOrigin: true,
},
},
},
build: {
outDir: '../backend/public', // Build-Output direkt ins Backend
},
});