Skip to content

Commit

Permalink
fix: route to ?helia-sw for all 404 paths
Browse files Browse the repository at this point in the history
Subdomain gateway won't have any path prefix, namespace and root
identifier are in `Host` header.

Closes #28
  • Loading branch information
lidel committed Feb 23, 2024
1 parent 2ba597a commit de4f2c2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions public/_redirects
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/ipns/* /?helia-sw=/ipns/:splat 302
/ipfs/* /?helia-sw=/ipfs/:splat 302
/* /?helia-sw=/:splat 302

0 comments on commit de4f2c2

Please sign in to comment.