Read .env file on start

This commit is contained in:
Ethan Girouard 2024-01-16 21:46:50 -05:00
parent 73a9fcdf4d
commit 7a9c93ee49
Signed by: eta357
GPG Key ID: 7BCDC36DFD11C146

View File

@ -1,6 +1,9 @@
#[cfg(feature = "ssr")] #[cfg(feature = "ssr")]
#[actix_web::main] #[actix_web::main]
async fn main() -> std::io::Result<()> { async fn main() -> std::io::Result<()> {
use dotenv::dotenv;
dotenv().ok();
use actix_files::Files; use actix_files::Files;
use actix_web::*; use actix_web::*;
use leptos::*; use leptos::*;