From 14704bf23d979fa828db76e424cd753131832fb9 Mon Sep 17 00:00:00 2001 From: Zac Gaetano Date: Sun, 5 Apr 2026 10:56:31 -0400 Subject: [PATCH] fix: serve frontend from /app/frontend/dist --- backend/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/main.py b/backend/main.py index c900854..1dab576 100644 --- a/backend/main.py +++ b/backend/main.py @@ -987,9 +987,13 @@ async def remove_mcp_server(name: str): # -------- Static files / React SPA -------- +# Try multiple possible frontend build output locations STATIC_DIR = Path("/app/static") +if not STATIC_DIR.exists(): + STATIC_DIR = Path("/app/frontend/dist") if STATIC_DIR.exists(): app.mount("/static", StaticFiles(directory=str(STATIC_DIR)), name="static") + app.mount("/assets", StaticFiles(directory=str(STATIC_DIR / "assets")), name="assets") if (STATIC_DIR / "assets").exists() else None @app.get("/")