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
## Problem solved
Short description of the bug fixed or feature added
<!-- start pr-codex -->
---
## PR-Codex overview
This PR introduces a new constant, `API_SERVER_URL`, to centralize the API server URL configuration. It replaces instances of `process.env.NEXT_PUBLIC_THIRDWEB_API_HOST` throughout the codebase, enhancing maintainability and readability.
### Detailed summary
- Added `API_SERVER_URL` in `env.ts`.
- Replaced `process.env.NEXT_PUBLIC_THIRDWEB_API_HOST` with `API_SERVER_URL` in multiple files:
- `getAccount.ts`
- `fetchEcosystemList.ts`
- `fetchEcosystem.ts`
- `team-members.ts`
- `get-auth-token/route.ts`
- `getAPIKeys.ts`
- `ensure-login/route.ts`
- `server-proxy/api/[...paths].tsx`
- `team.ts`
- `projects.ts`
- `create-ticket.action.ts`
- `auth-actions.ts`
- `utils.ts`
- Updated fetch requests to use `API_SERVER_URL` for consistent API endpoint access.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
0 commit comments