Skip to content

Commit af7ed43

Browse files
committed
try fix static
1 parent 6745ac9 commit af7ed43

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/web/statics.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ pub(crate) fn build_static_router() -> AxumRouter {
6767
"/rustdoc-2021-12-05.css",
6868
get_static(|| async { build_static_css_response(RUSTDOC_2021_12_05_CSS) }),
6969
)
70-
.nest_service(
71-
"/",
70+
.fallback_service(
7271
get_service(ServeDir::new("static").fallback(ServeDir::new("vendor")))
7372
.layer(middleware::from_fn(set_needed_static_headers))
7473
.layer(middleware::from_fn(|request, next| async {

0 commit comments

Comments
 (0)