We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6745ac9 commit af7ed43Copy full SHA for af7ed43
src/web/statics.rs
@@ -67,8 +67,7 @@ pub(crate) fn build_static_router() -> AxumRouter {
67
"/rustdoc-2021-12-05.css",
68
get_static(|| async { build_static_css_response(RUSTDOC_2021_12_05_CSS) }),
69
)
70
- .nest_service(
71
- "/",
+ .fallback_service(
72
get_service(ServeDir::new("static").fallback(ServeDir::new("vendor")))
73
.layer(middleware::from_fn(set_needed_static_headers))
74
.layer(middleware::from_fn(|request, next| async {
0 commit comments