Skip to content
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

Missing support for index.html in HAMT-subdirectory #19

Closed
lidel opened this issue Feb 13, 2024 · 2 comments
Closed

Missing support for index.html in HAMT-subdirectory #19

lidel opened this issue Feb 13, 2024 · 2 comments

Comments

@lidel
Copy link
Member

lidel commented Feb 13, 2024

This is issue about (2) on screenshot below can be reproduced by opening /ipfs/bafybeiaysi4s6lnjev27ln5icwm6tueaw2vdykrtjkwiphwekaywqhcjze/wiki/ via service worker gateway at https://bafybeiaysi4s6lnjev27ln5icwm6tueaw2vdykrtjkwiphwekaywqhcjze.ipfs.sw.sgtpooki.com/wiki/:

2024-02-13_17-18

It takes a while for this error to surface, because of a separate problem described in #18

@SgtPooki
Copy link
Member

This is fixed with the changes from ipfs/helia#450.

  1. clone code from that PR, then run
  2. rm packages/*/*.tgz
  3. then run npm run build && cd packages/unixfs && npm pack && cd ../verified-fetch && npm i --save ../unixfs/*.tgz && npm run build && npm pack
  4. Then run npm i --save <pathToHeliaRepo>/packages/*/*.tgz
  5. then npm run start

The first request takes quite a while, but subsequent requests do not (also, my internet is really slow and borked today)

image image

These changes have been deployed to http://en-wikipedia--on--ipfs-org.ipns.sw.sgtpooki.com/

@SgtPooki
Copy link
Member

helia-service-worker-gateway-2022-02-23.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: 🎉 Done
Development

No branches or pull requests

2 participants