diff --git a/src/main.rs b/src/main.rs index 35c13f0..9038f32 100644 --- a/src/main.rs +++ b/src/main.rs @@ -25,9 +25,9 @@ async fn main() -> std::io::Result<()> { App::new() // serve JS/WASM/CSS from `pkg` + .service(Files::new("/assets", &site_root)) .service(Files::new("/pkg", format!("{site_root}/pkg"))) // serve other assets from the `assets` directory - .service(Files::new("/assets", &site_root)) // serve the favicon from /favicon.ico .service(favicon) .leptos_routes(routes, {