In our JavaScript web application, we utilize a config.js file to store global configuration information, such as base API URLs. These values often differ between local development and production environments.
I have explored solutions like creating a development mode for AngularJS using GruntJS, as well as using grunt-replace to generate an on-the-fly configuration file.
However, the challenge lies in the fact that each developer's "development" environment may require different API setups, resulting in varying base API URLs. I am seeking a way for developers to override specific variables in the config without having to commit this information to the Git repository. While I understand that this goes against best practices of having everything in the repository, given that it only pertains to one or two variables in this project, I am willing to make an exception.
Does anyone have any suggestions on how to achieve this type of setup?