Skip to content

fix: route ipfs lookups through the production proxy only - #19

Merged
erubboli merged 2 commits into
mainfrom
fix/ipfs-gateway-order
Oct 12, 2026
Merged

erubboli merged 2 commits into
mainfrom
fix/ipfs-gateway-order

Conversation

@erubboli

Copy link
Copy Markdown
Member

Public IPFS gateways are unreliable from residential networks (429 service-worker-only, multi-second hangs) — every token icon/metadata load paid a multi-second dead-gateway walk, and flaky egress could kill the final hop, leaving 502s and letter-avatar fallbacks.

The /ipfs/ same-origin proxy now defaults to the project's production bridge proxy only (R2-backed, content-addressed, measured <1s). The gateway list stays env-overridable via IPFS_GATEWAY_URLS and the failover loop remains for operator-added mirrors. New test covers the honest 502 when the only proxy is down.

@erubboli
erubboli merged commit 72166fe into main Oct 12, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant