Expand description
Serve the embedded Dashboard v2 bundle (Dioxus/WASM — #97, epic #95).
The bundle under ../dashboard-v2/ is a build artifact committed to the
repo and regenerated by scripts/build-dashboard.sh. Committing it keeps
the “one binary ships the UI” property — an ordinary cargo build needs no
wasm toolchain — at the cost of a build artifact in git. CI reruns the build
and diffs the tree, so a stale bundle fails the build rather than shipping.
Assets are looked up in a table generated by build.rs (see that file for
why the list can’t be hardcoded). v2 is the default dashboard, served at
both / and /v2 (#191) — the latter kept permanently because the bundle’s
own asset URLs are absolute /v2/.... The deprecated v1 page now lives at
/v1 (see crate::dashboard).
Constants§
- CSP
- Content-Security-Policy for the v2 page.
Statics§
- ASSETS
- Every file in the committed Dashboard v2 bundle, as
(url_path, content_type, bytes). Generated bybuild.rs.