Statt Env-Var-gesteuertem Dualbetrieb (lokal /hifi, live /) läuft jetzt alles einheitlich unter der Domain-Wurzel - auch lokal (siehe neuer VirtualHost auf Port 8080 in der Apache-Konfiguration, unabhängig von Port 80 mit /hifi). Dabei einen Doppel-Slash-Bug in der Routenberechnung gefunden und behoben (base_path '/' + '/api' ergab faelschlich '//api'). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
19 lines
343 B
JavaScript
19 lines
343 B
JavaScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
base: '/',
|
|
build: {
|
|
outDir: '../hifi',
|
|
emptyOutDir: false,
|
|
},
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:8080',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
});
|