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:
co-authored by
Claude Opus 5.5
parent
728ac9b45e
commit
9cac33d167
@@ -305,10 +305,3 @@ func handleStatsDetail(w http.ResponseWriter, r *http.Request) error {
|
||||
})
|
||||
return nil
|
||||
}
|
||||
|
||||
// serveIndex liefert die Startseite. Eigene Route (statt FileServer-Catch-All),
|
||||
// damit trackImpression nur echte Seitenaufrufe von "/" zählt und nicht jedes
|
||||
// Asset.
|
||||
func serveIndex(w http.ResponseWriter, r *http.Request) {
|
||||
http.ServeFile(w, r, "web/index.html")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user