Remove favicon server

This commit is contained in:
Ethan Girouard 2024-03-01 15:03:23 -05:00
parent acf6d3fc05
commit dcd08ff46e
Signed by: eta357
GPG Key ID: 7BCDC36DFD11C146

View File

@ -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