Read .env on startup

This commit is contained in:
2026-06-14 22:36:26 -04:00
parent 6eb9ebdbd6
commit e63ba19a84

View File

@@ -37,5 +37,10 @@ fn main() {
#[cfg(debug_assertions)] #[cfg(debug_assertions)]
dioxus::logger::init(tracing::Level::DEBUG).expect("Failed to initialize tracing logger"); dioxus::logger::init(tracing::Level::DEBUG).expect("Failed to initialize tracing logger");
#[cfg(feature = "server")]
if let Err(e) = dotenvy::dotenv() {
tracing::warn!("Error reading .env: {e}");
}
dioxus::launch(App); dioxus::launch(App);
} }