visual continunity
This commit is contained in:
@@ -40,15 +40,15 @@ fn main() {
|
||||
|
||||
println!("cargo:rerun-if-changed=static");
|
||||
println!("cargo:rerun-if-changed=build.rs");
|
||||
println!("cargo:rerun-if-env-changed=OXICLOUD_LEGACY_ASSETS");
|
||||
println!("cargo:rerun-if-env-changed=OXICLOUD_RUST_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" {
|
||||
// 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
|
||||
// pure-Rust asset pipeline below is retained, behind `OXICLOUD_RUST_ASSETS=1`,
|
||||
// for one-release rollback only.
|
||||
if env_or("OXICLOUD_RUST_ASSETS", "0") != "1" {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user