React-Frontend ausliefern, altes Vanilla-Frontend entfernt

- frontend.go: Seitenrouten liefern die index.html (no-cache), gehashte
  Assets unter /assets dauerhaft cachebar, sonst echtes 404
- /stats als Seite, /stats.html leitet per 301 weiter
- Containerfile: Node-Stage baut das Frontend nach web/
- Vite baut nach ../web (gitignored); web/ (Vanilla-JS) gelöscht
- notes/frontend.md, deploy.md angepasst

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TiXsPUqw7oeomZ8wZrQW5q
This commit is contained in:
irrlicht
2026-09-26 23:49:20 +02:00
co-authored by Claude Opus 5.5
parent 728ac9b45e
commit 9cac33d167
22 changed files with 129 additions and 1368 deletions
+7
View File
@@ -13,6 +13,13 @@ const proxy = { target: backend, changeOrigin: false };
export default defineConfig({
plugins: [react()],
// Das Go-Backend liefert das Build aus web/ aus (siehe frontend.go).
// emptyOutDir muss explizit an sein, weil das Ziel außerhalb von frontend/
// liegt.
build: {
outDir: "../web",
emptyOutDir: true,
},
server: {
proxy: {
"/api": proxy,