Skip to content

Default backend V2 url on Dev builds to STG#566

Merged
CassioMG merged 3 commits intomainfrom
cg-dev-backend-envs
Nov 13, 2025
Merged

Default backend V2 url on Dev builds to STG#566
CassioMG merged 3 commits intomainfrom
cg-dev-backend-envs

Conversation

@CassioMG
Copy link
Copy Markdown
Contributor

@CassioMG CassioMG commented Nov 13, 2025

What

Default backend V2 to STG url for Freighter Dev builds (instead of using PROD url).

We should do the same for backend V1 as soon as STG is publicly available there.

This PR also renames the backend config file and types/functions to make it more explicit that the backend env is only configurable on Dev builds.

Why

So we prevent Dev builds from polluting PROD backend with Dev requests.

Screenshot 2025-11-12 at 17 02 32 Screenshot 2025-11-12 at 16 57 08

Known limitations

N/A

Checklist

PR structure

  • This PR does not mix refactoring changes with feature changes (break it down into smaller PRs if not).
  • This PR has reasonably narrow scope (break it down into smaller PRs if not).
  • This PR includes relevant before and after screenshots/videos highlighting these changes.
  • I took the time to review my own PR.

Testing

  • These changes have been tested and confirmed to work as intended on Android.
  • These changes have been tested and confirmed to work as intended on iOS.
  • These changes have been tested and confirmed to work as intended on small iOS screens.
  • These changes have been tested and confirmed to work as intended on small Android screens.
  • I have tried to break these changes while extensively testing them.
  • This PR adds tests for the new functionality or fixes.

Release

  • This is not a breaking change.
  • This PR updates existing JSDocs when applicable.
  • This PR adds JSDocs to new functionalities.
  • I've checked with the product team if we should add metrics to these changes.
  • I've shared relevant before and after screenshots/videos highlighting these changes with the design team and they've approved the changes.

Comment on lines +42 to +43
const DEFAULT_BACKEND_V1_ENVIRONMENT = DevBackendEnvironment.PROD;
const DEFAULT_BACKEND_V2_ENVIRONMENT = DevBackendEnvironment.STG;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is there we set the default values

@CassioMG CassioMG merged commit d9f7321 into main Nov 13, 2025
3 checks passed
@CassioMG CassioMG deleted the cg-dev-backend-envs branch November 13, 2025 21:46
This was referenced Nov 24, 2025
This was referenced Dec 4, 2025
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.

2 participants