Skip to content

chore: remove dead V2 Hasura indexer dependency - #966

Merged
EightRice merged 1 commit into
masterfrom
chore/remove-dead-v2-indexer
Aug 16, 2026
Merged

EightRice merged 1 commit into
masterfrom
chore/remove-dead-v2-indexer

Conversation

@EightRice

Copy link
Copy Markdown
Collaborator

What

Removes the app's dependency on v2-homebase-indexer.w3api.dev, which no longer resolves (NXDOMAIN, along with every other w3api.dev indexer host).

Why

  • Every Tezos DAO list load fired a doomed request to the dead host, logged a console error, and triggered the support-notification error tracker.
  • No replacement host has ever existed in repo history (the URL dates to Nov 2022, c18d5b60).
  • The legacy app the V2 DAO cards deep-linked to (v2.tezos-homebase.io) bakes the same dead hosts into its own bundle, so V2 DAO data is unreachable everywhere. This frontend cannot fix that.
  • The dead endpoint's Hasura admin secret was shipping in the production bundle for no reason.

Changes

  • services.ts: drop the client_v2 request from getDAOs (the v1/v3 indexer path is untouched)
  • graphql.ts: delete client_v2 and its header plumbing
  • queries.ts: delete GET_DAOS_QUERY_V2 (byte-identical to the v1 query, only the host differed)
  • constants.ts: delete the _V2 env keys, plus REACT_APP_HASURA_ADMIN_SECRET (v1), which no client ever sent
  • env.example, distribution/env.build: remove the corresponding lines (the env.build change alters the next release's BUILDHASH, expected)

Not touched: the registry/treasury type branches in DAOItem.tsx and the REACT_APP_V2_URL redirect in utils.ts. They are unreachable now (the v3 indexer serves only lambda DAOs) but harmless; can go in a later cleanup if desired.

Verification

  • tsc --noEmit clean
  • grep -r 'client_v2\|HASURA_URL_V2\|HASURA_ADMIN_SECRET' src/ returns nothing
  • Confirmed live: the v3 indexer at v3-homebase-indexer.tezos-homebase.io answers and serves 51 DAOs, all type lambda

v2-homebase-indexer.w3api.dev is NXDOMAIN (as are all w3api.dev
indexer hosts). Every Tezos DAO list load fired a doomed request to
it, logged a console error, and pinged trackAppError. No replacement
host has ever existed in the repo history, and the legacy app the V2
DAO cards linked to (v2.tezos-homebase.io) bakes in the same dead
hosts, so V2 DAO data is unreachable everywhere regardless.

Removes client_v2, GET_DAOS_QUERY_V2 (byte-identical to the v1 query,
only the host differed), the _V2 env keys, and the dead endpoint's
admin secret from env files. Also drops REACT_APP_HASURA_ADMIN_SECRET
(v1), which no client ever sent.
@netlify

netlify Bot commented Aug 16, 2026

Copy link
Copy Markdown

Deploy Preview for tezos-homebase ready!

Name Link
🔨 Latest commit b6c0549
🔍 Latest deploy log https://app.netlify.com/projects/tezos-homebase/deploys/6a8190120eacef00088cb338
😎 Deploy Preview https://deploy-preview-966--tezos-homebase.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 28 (🟢 up 2 from production)
Accessibility: 91 (no change from production)
Best Practices: 92 (🟢 up 9 from production)
SEO: 92 (no change from production)
PWA: 70 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@EightRice
EightRice merged commit ed7ef23 into master Aug 16, 2026
6 checks passed
@EightRice
EightRice deleted the chore/remove-dead-v2-indexer branch August 16, 2026 10:52
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