diff --git a/src/cmd/serve.rs b/src/cmd/serve.rs index 701a255b..1c712a9a 100644 --- a/src/cmd/serve.rs +++ b/src/cmd/serve.rs @@ -138,7 +138,7 @@ async fn serve( "/", ServeDir::new(build_dir.clone()) // The fallback route for 404 errors: - .fallback(ServeFile::new(build_dir.join(file_404))), + .not_found_service(ServeFile::new(build_dir.join(file_404))), ) .with_state(reload_tx);