Fix email module integration - update build and UI server

This commit is contained in:
root 2026-02-07 16:28:36 +00:00
parent 661edc09fa
commit 607ad076d9
2 changed files with 5 additions and 3 deletions

View file

@ -1,3 +1,5 @@
fn main() {
}
let manifest_dir = std::env::var("CARGO_MANIFEST_DIR").unwrap();
let ui_path = std::path::Path::new(&manifest_dir).join("ui");
println!("cargo:rustc-env=BOTUI_UI_PATH={}", ui_path.display());
}

View file

@ -25,7 +25,7 @@ use tower_http::services::{ServeDir, ServeFile};
#[cfg(feature = "embed-ui")]
#[derive(RustEmbed)]
#[folder = "$CARGO_MANIFEST_DIR/ui"]
#[folder = "ui"]
struct Assets;
use crate::shared::AppState;