Remove favicon server
This commit is contained in:
parent
acf6d3fc05
commit
dcd08ff46e
12
src/main.rs
12
src/main.rs
@ -47,18 +47,6 @@ async fn main() {
|
|||||||
.unwrap();
|
.unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "ssr")]
|
|
||||||
#[actix_web::get("favicon.ico")]
|
|
||||||
async fn favicon(
|
|
||||||
leptos_options: actix_web::web::Data<leptos::LeptosOptions>,
|
|
||||||
) -> actix_web::Result<actix_files::NamedFile> {
|
|
||||||
let leptos_options = leptos_options.into_inner();
|
|
||||||
let site_root = &leptos_options.site_root;
|
|
||||||
Ok(actix_files::NamedFile::open(format!(
|
|
||||||
"{site_root}/favicon.ico"
|
|
||||||
))?)
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(not(any(feature = "ssr", feature = "csr")))]
|
#[cfg(not(any(feature = "ssr", feature = "csr")))]
|
||||||
pub fn main() {
|
pub fn main() {
|
||||||
// no client-side main function
|
// no client-side main function
|
||||||
|
Loading…
x
Reference in New Issue
Block a user