ipfs/service-worker-gateway

Missing support for index.html in HAMT-subdirectory

Closed this issue · 2 comments

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

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/

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