dashboard
dashboard copied to clipboard
Update API endpoint for fetching chains
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, andfetchChain.tsto use${THIRDWEB_API_HOST}constant. - Imported
THIRDWEB_API_HOSTconstant fromconstants/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}
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 |
📝 Changed routes:
| /[chainSlug] |
|---|
![]() (view full size) |
Commit 75af1a3b624057d46eb9234c3987aab529be9459 (https://thirdweb-g8fxtiu6j.thirdweb-preview.com).
![Screenshot of /[chainSlug]](https://images.weserv.nl?url=https://sjc.microlink.io/JBlE_1dytnO6VH9hDKWgq3XilA9To8aLNTdpmCHE7qyyi7VNKJqmLxNAvmE-Fyt7rA5vfCS7f92-5Jg7my5q6w.png&w=600)