You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 29, 2023. It is now read-only.
The front-end could have a preference for one or many public gateways to use as a fallback in case the local one is unavailable. It could come from an environment variable, from a JSON file, or even from the back-end itself since it could probably host an IPFS node.
Once it's decided, it can be set in a Svelte Store or something and a component should handle receiving and displaying that data. Example:
In this example, ipfsGatewayUrl doesn't even need to be an IPFS gateway, it could also be a regular assets folder on the website itself.
That said, it seem like using https://w3s.link/ipfs/ as your public gateway is the correct choice since assets are uploaded there, so I'm really wondering why I have empty blocks in the UI. I guess that #2 can help, but also maybe there's some huge assets for some reason and that makes it harder to display them.
What: In https://github.com/revanced/revanced-polling-api/blob/main/app/data/processed.json, assets have an URL property that includes a public IPFS gateway.
Ideally, only the IPFS hash + route should be stored here
Why:
This form is more canonical; it is used by the IPFS CLI. Example:
This allows the client to use any arbitrary IPFS HTTP gateways, including
localhost:8080
.It's important to consider
localhost:8080
because this allows IPFS users to help seeding assets as they visit the website that uses them.For example, one could check if
localhost:8080
is able to serve IPFS traffic and decide to use a public or the local gateway:When:Who:Where:OBS:
The text was updated successfully, but these errors were encountered: