we will load env file only in debug builds

This commit is contained in:
mykola2312 2024-03-14 19:05:46 +02:00
parent f90dc006ee
commit d45ae2b6bd

View file

@ -18,7 +18,7 @@ rust_i18n::i18n!("locales");
#[tokio::main]
async fn main() -> anyhow::Result<()> {
if cfg!(debug_assertions) {
dotenv::from_filename(".env.dev").ok();
dotenv::from_filename(".env").ok();
}
log_init();