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:
parent
29eaa7f801
commit
01dae3a4ac
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue