init new frontend

This commit is contained in:
Bradley Nelson
2026-06-17 17:06:30 -06:00
parent b8a0018785
commit daa3010458
114 changed files with 32716 additions and 119 deletions
+9
View File
@@ -40,9 +40,18 @@ fn main() {
println!("cargo:rerun-if-changed=static");
println!("cargo:rerun-if-changed=build.rs");
println!("cargo:rerun-if-env-changed=OXICLOUD_LEGACY_ASSETS");
git_status();
// Post-cutover (Svelte/Vite): the frontend is built by Vite into
// `static-dist/` and the Rust web layer serves it directly — no `include_str!`
// HTML, no Rust-side bundling. The legacy pure-Rust asset pipeline below is
// retained, behind `OXICLOUD_LEGACY_ASSETS=1`, for one-release rollback only.
if env_or("OXICLOUD_LEGACY_ASSETS", "0") != "1" {
return;
}
// ── Guard: Docker cacher stage has no static/ ────────────────────────────
if !static_dir.exists() {
for name in HTML_INCLUDE {