Files
hms-mediaengine/_entwicklung/apps/web/vite.config.ts
T
HMS MediaEngine Agent 362e089be0 AUFGERAUMT: Root auf 10 sichtbare Elemente reduziert
Der Nutzer hat recht: Der Ordner war voller Entwicklungs-Muell.
Jetzt ist sauber getrennt:

ROOT (was der Nutzer sieht und braucht):
- run.py                     = das Programm
- hms_app/                   = der Anwendungscode
- HMS MediaEngine.app        = macOS Doppelklick-Starter
- HMS-Start.vbs              = Windows Doppelklick-Starter
- HMS-Install.vbs             = Windows Erst-Installation
- HMS-Mac-Install.command     = macOS Homebrew-Installation
- HMS-Portable-Install.command = macOS Portable-Installation (16GB-Fix)
- installer_gui.py           = grafischer Installer
- launcher.pyw + launcher_core.py = interne Start-Logik
- LIESMICH.txt               = 10-Zeilen-Kurzanleitung
- .gitignore

_entwicklung/ (alles andere, NICHT benoetigt):
- packages/ apps/ native/ plugins/ tools/ schemas/ tests/ docs/
  build/ fixture_profiles/
- PLAN.md STATUS.md ERRORS.md TEST_REPORT.md CHANGELOG.md README.md
- pyproject.toml uv.lock setup_*.sh/ps1 make_mac_app.py

Diese Trennung gilt ab sofort fuer alle Commits. Der Nutzer kann
_entwicklung/ loeschen wenn er Platz braucht - die App laeuft ohne.

Verifiziert: App startet nach Aufraeumen unveraendert (Health 200).
2026-09-11 23:44:06 +02:00

33 lines
691 B
TypeScript

import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
/**
* Vite-Konfiguration der HMS-MediaEngine-Weboberfläche (§17).
*
* Dev-Server-Proxy auf den Control Core (apps/control_server, Port 8000):
* - '/api' als HTTP-Proxy
* - '/ws' als WebSocket-Proxy (Snapshot + Deltas, §17.9)
* Same-Origin im Dev-Betrieb; produktiv übernimmt der Launcher/Reverse-Proxy.
*/
const proxy = {
'/api': {
target: 'http://localhost:8000',
},
'/ws': {
target: 'ws://localhost:8000',
ws: true,
},
} as const;
export default defineConfig({
plugins: [react()],
server: {
port: 5173,
proxy,
},
preview: {
port: 4173,
proxy,
},
});