Skip to content

centralize API base selection and environment-aware fetching #291

Description

@grantfox-oss

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.

  • Impacted files: 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third CampaignenhancementNew feature or requestgood first issueGood for newcomershelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions