add CD, fix warnings
This commit is contained in:
@ -8,6 +8,9 @@ use crate::components::toast::ToastProvider;
|
||||
|
||||
use crate::views::{Upload, UploadInfo, Home};
|
||||
|
||||
#[cfg(feature = "server")]
|
||||
use crate::config::ServerConfig;
|
||||
|
||||
mod components;
|
||||
mod views;
|
||||
|
||||
@ -27,6 +30,9 @@ const FAVICON: Asset = asset!("/assets/favicon.ico");
|
||||
const TAILWIND_CSS: Asset = asset!("/assets/tailwind.css");
|
||||
|
||||
fn main() {
|
||||
#[cfg(feature = "server")]
|
||||
let _ = ServerConfig::load();
|
||||
|
||||
dioxus::logger::init(Level::INFO).expect("failed to init logger");
|
||||
dioxus::launch(App);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user