Skip to content

Commit

Permalink
fix: fixed warp js snippets handling
Browse files Browse the repository at this point in the history
  • Loading branch information
arctic-hen7 committed Jul 12, 2022
1 parent 766dd44 commit dab7e72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/perseus-warp/src/perseus_routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ pub async fn perseus_routes<M: MutableStore + 'static, T: TranslationsManager +
.and(warp::path::end())
.and(warp::fs::file(opts.wasm_js_bundle.clone()));
// Handle JS interop snippets (which need to be served as separate files)
let snippets = warp::path!(".perseus" / "snippets").and(warp::fs::dir(opts.snippets.clone()));
let snippets =
warp::path!(".perseus" / "snippets" / ..).and(warp::fs::dir(opts.snippets.clone()));
// Handle static content in the user-set directories (this will all be under
// `/.perseus/static`) We only set this if the user is using a static
// content directory
Expand Down

0 comments on commit dab7e72

Please sign in to comment.