diff --git a/app/src/web/routes.rs b/app/src/web/routes.rs index 4296bec..d7b36bc 100644 --- a/app/src/web/routes.rs +++ b/app/src/web/routes.rs @@ -95,7 +95,10 @@ pub(super) async fn init_static_routes() -> Result { .push( Router::with_path("{*path}") .hoop(compression) - .get(static_embed::().fallback("index.html")), + // Only "/" maps to the app; the frontend has no client-side + // routes, so unknown paths (and /favicon.ico) get a 404 + // rather than index.html served as every file. + .get(static_embed::().defaults("index.html")), ) }; Ok(router) diff --git a/crates/rkvm-web/index.html b/crates/rkvm-web/index.html index 2910191..0de0365 100644 --- a/crates/rkvm-web/index.html +++ b/crates/rkvm-web/index.html @@ -4,6 +4,7 @@ rustkvm +