init new frontend
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user