feat(console): embed the management UI in release binaries

- build locked Web dependencies automatically for release profiles
- keep debug Cargo builds independent from the Vite development server
- embed generated Host, Page, manifest, and service worker assets
- serve exact control-plane assets with MIME and cache headers
- reject non-canonical and unknown paths without an SPA fallback
- cover embedded document boundaries and path validation
This commit is contained in:
Maofeng
2026-07-30 09:22:04 +08:00
parent 70ee5e33da
commit f6ad94e948
7 changed files with 239 additions and 0 deletions
+2
View File
@@ -23,6 +23,8 @@ license = "Apache-2.0"
[workspace.dependencies]
axum = { version = "0.8.9", features = ["multipart"] }
base64 = "0.23.0"
include_dir = "0.7.4"
mime_guess = "2.0.5"
reqwest = { version = "0.13.4", default-features = false, features = ["blocking", "json", "multipart", "rustls"] }
serde = { version = "1.0.228", features = ["derive"] }
serde_json = "1.0.149"