diff --git a/gensui/app.py b/gensui/app.py index 6f2f5da..02f22e4 100644 --- a/gensui/app.py +++ b/gensui/app.py @@ -118,7 +118,9 @@ async def health_check(): return {"status": "ok", "service": "gensui", "version": "0.1.0"} # ── Serve Frontend (production) ────────────────────────── - frontend_dist = GENSUI_ROOT / "frontend" / "dist" + frontend_dist = GENSUI_ROOT.parent / "frontend" / "dist" + if not frontend_dist.exists(): + frontend_dist = GENSUI_ROOT / "frontend" / "dist" if frontend_dist.exists(): # Serve /assets/* static files assets_path = frontend_dist / "assets"