fix(dashboard): serve /dashboard/ index via StaticFiles html=True

Resolves the 404 on a direct hit to /dashboard/ (verified by reliability
sweep: endpoint + dashboard verifiers). / and all assets already worked;
this makes the bare directory path serve index.html too.
This commit is contained in:
Austin 2026-07-25 18:37:58 -07:00
parent 29eaa7f801
commit 01dae3a4ac
1 changed files with 1 additions and 1 deletions

View File

@ -2527,7 +2527,7 @@ import signal
dashboard_dir = BASE_DIR / "dashboard"
if dashboard_dir.exists():
app.mount("/dashboard", StaticFiles(directory=str(dashboard_dir)), name="dashboard")
app.mount("/dashboard", StaticFiles(directory=str(dashboard_dir), html=True), name="dashboard")
# graphify knowledge-graph output (built by `graphify . --code-only`).
# Served so dashboard pages can link/open the interactive graph.