-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add _redirects file for SPA behavior #28
Comments
What should the content of this _redirects file include? just this should be able to be added to |
Subdomain gateway won't have any path prefix, namespace and root identifier are in `Host` header. Closes #28
I see we already have redirect to root that preserves path ( I've updated rule in in #53 but we need to wire it up in follow-up PR. |
Reopening as we still need to wire up handler forthese HTTP 302 with Example: http://helia-sw-gateway.localhost:3000/ipns/docs.ipfs.tech/how-to/pin-files/ redirects to http://helia-sw-gateway.localhost:3000/?helia-sw=/ipns/docs.ipfs.tech/how-to/pin-files Rationale: ease of deployment. I think 302 rule is slightly better than HTTP 302 flow will work without backend being IPFS gateway with |
@lidel we shouldn't need |
we have e2e first-hit tests for this now and they are successful |
If we leverage rainbow and dnslink for hosting, we need
_redirects
for SPA setup in case NGINX 404 logic does not engage correctly.Does not cost us much, just include static SPA
_redirects
file in the build output:Ref. https://docs.ipfs.tech/how-to/websites-on-ipfs/redirects-and-custom-404s/#examples
The text was updated successfully, but these errors were encountered: