Currently, I am working on a project that combines Angular 2/Ionic 2 with JEE 7. In this particular scenario:
I have created an httpClient layer to handle all backend calls, and within this layer, there is a const variable called REST_BASE_PATH
. During development, I want this variable to point to my localhost, but in production, it should point to a specific address.
Considering this, I am seeking the most efficient and automated approach to achieve this functionality. Any suggestions would be greatly appreciated.