Good day. I am working on some Library-type projects that are in charge of communicating with different APIs and are called from a web application, I need to know what can be the best approach to switch between development and production endpoints inside the library projects. I thought about defining an environment variable that I create on my local computer and based on that variable take a configuration file or another depending on whether that variable exists or not.
On the other hand, I'm not sure how to create and take the values from that configuration file.
Some clue? Thanks