dashboard icon indicating copy to clipboard operation
dashboard copied to clipboard

Update API endpoint for fetching chains

Open kumaryash90 opened this issue 1 year ago • 2 comments

PR-Codex overview

This PR updates API fetch calls to use a dynamic API host constant instead of hardcoded URLs.

Detailed summary

  • Updated API fetch calls in fetchChainsFromApi, [chainSlug]/index.tsx, and fetchChain.ts to use ${THIRDWEB_API_HOST} constant.
  • Imported THIRDWEB_API_HOST constant from constants/urls.
  • Removed hardcoded API URLs and replaced with ${THIRDWEB_API_HOST} constant for flexibility.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

kumaryash90 avatar Apr 13 '24 03:04 kumaryash90

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 29, 2024 2:38pm

vercel[bot] avatar Apr 13 '24 03:04 vercel[bot]

📝 Changed routes:

/[chainSlug]
Screenshot of /[chainSlug]
(view full size)

Commit 75af1a3b624057d46eb9234c3987aab529be9459 (https://thirdweb-g8fxtiu6j.thirdweb-preview.com).

jnsdls avatar Apr 13 '24 03:04 jnsdls