Skip to content

Commit

Permalink
Merge branch 'main' into feat/added-workflow-for-PR-fly-preview
Browse files Browse the repository at this point in the history
  • Loading branch information
ravi-sawlani-yral committed Aug 13, 2024
2 parents e3a08ee + d02dd08 commit 253a7f1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ssr/src/fallback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,5 @@ async fn get_static_file(uri: Uri, root: &str) -> Result<Response<Body>, (Status
.unwrap();
// `ServeDir` implements `tower::Service` so we can call it with `tower::ServiceExt::oneshot`
// This path is relative to the cargo root
let res = ServeDir::new(root).oneshot(req).await;
Ok(res.into_response())
Ok(ServeDir::new(root).oneshot(req).await.into_response())
}

0 comments on commit 253a7f1

Please sign in to comment.