reorder services

This commit is contained in:
YK 2025-09-20 11:00:10 +03:00
parent 2e742629dd
commit 63da2898e1

View File

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