-
Notifications
You must be signed in to change notification settings - Fork 183
centralize API base selection and environment-aware fetching #291
Copy link
Copy link
Open
Labels
GrantFox OSSIssue tracked in GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third CampaignCampaign: Third CampaignenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
Activity
Metadata
Metadata
Assignees
Labels
GrantFox OSSIssue tracked in GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third CampaignCampaign: Third CampaignenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
frontend code duplicates base URL logic in many files (
lib/api.ts, admin components, settings pages). Centralize and type the base API URL to avoid inconsistent environments.app/frontend/src/lib/api.ts,app/frontend/src/app/settings/developer/page.tsx,app/frontend/src/components/admin/AuditLogs.tsx,app/frontend/src/components/admin/FeatureFlags.tsx,app/frontend/src/lib/errorReporter.ts, `app/frontend/next.config.ts