Best practices for local dev/publish settings?

Are there some best practices / guides for handling settings/configurations of app developed in Expo?

I am doing development in few different computers, and running local API server in those when developing. As they have different IP, I need to change those URLs accordingly depending which computer I am working on. Same adjustment is needed when I publish app, as then it would be using either testing / production environment of API.

Any tips & tricks to tackle this kind of situation, without me needing to alter multiple files every time I switch computer? Having testing/production URLs also automatically in place would prevent accidentally publishing app that has wrong URLs configured in.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.