I'm gaving a bit of trouble understanding exactly what you mean, but I can imagine you're referring to the fact that you need to work with different configurations for different environments. What I usually see in these cases is that the so-called constants are being used. With these constants you can assign specific values for a setting per environment.
See also:
https://docs.mendix.com/refguide/constants
These constants can be set per environment, either in the environment settings within the Mendix portal when the app is deployed in the Mendix cloud, or by editing the environment's corresponding yaml file when deployed on-premise.