build: move generated assets to dist

This commit is contained in:
2026-04-15 00:26:50 +02:00
parent 7a48f66a73
commit 90c80b9d1e
7 changed files with 18 additions and 14 deletions

View File

@@ -32,6 +32,10 @@ func NewRouter(cfg Config) http.Handler {
fs := http.FileServer(http.Dir("./static"))
mux.Handle("/static/", http.StripPrefix("/static/", fs))
// Serve built frontend assets
dist := http.FileServer(http.Dir("./dist"))
mux.Handle("/dist/", http.StripPrefix("/dist/", dist))
mux.HandleFunc("/", animeHandler.HandleCatalog)
mux.HandleFunc("/discover", animeHandler.HandleDiscover)
mux.HandleFunc("/notifications", animeHandler.HandleNotifications)