Read .env on startup

This commit is contained in:
2026-06-14 22:36:26 -04:00
parent ba481d4042
commit 7bca1c8f61

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);
} }