Skip to content

fix: allow API base URL override#59

Open
MFA-G wants to merge 1 commit into
StepFi-app:mainfrom
MFA-G:fix-api-base-env
Open

fix: allow API base URL override#59
MFA-G wants to merge 1 commit into
StepFi-app:mainfrom
MFA-G:fix-api-base-env

Conversation

@MFA-G

@MFA-G MFA-G commented Jul 2, 2026

Copy link
Copy Markdown

Summary

  • Use VITE_API_BASE_URL when provided, while keeping the live testnet API as the default
  • Document the local override in the README
  • Add config tests for default and env-provided API base URLs

Closes #58.

Validation

  • npm test -- --run src/constants/config.test.ts passes
  • npm run build fails on existing TypeScript issues in src/services/__tests__/api.test.ts and vite.config.ts
  • npm run lint fails on existing lint issues in src/services/__tests__/api.test.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: API_BASE_URL hardcoded without environment variable fallback

1 participant