From cb02ede5fb8f22abb3cbb2083823527229218788 Mon Sep 17 00:00:00 2001 From: Hitonabi Date: Thu, 25 Jun 2026 22:30:26 +0200 Subject: [PATCH] fix: serve manifest.webmanifest and other root files in SPA catch-all --- backend/app.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/app.py b/backend/app.py index a592761..4be5df9 100644 --- a/backend/app.py +++ b/backend/app.py @@ -51,7 +51,13 @@ if FRONTEND_DIST.exists(): @app.get("/{full_path:path}") def spa(full_path: str): + # Falls die Datei direkt in FRONTEND_DIST liegt (z.B. manifest.webmanifest, favicon.ico), liefere sie aus + target = FRONTEND_DIST / full_path + if target.is_file(): + return FileResponse(target) + index = FRONTEND_DIST / "index.html" if index.exists(): return FileResponse(index) return {"detail": "frontend not built"} +