I have an angular9 project, I need to deploy it to server, it has rest api url, currently which I am storing in constant.ts file, but after ng build --prod all files get converted to different format.
export const address = 'http://10.164.64.93:5200/api/';
I want to know what is best way to keep this rest api path configurable even after it is deployed to server? I dont want to build my solution again, but I should be able to change my rest url path, or any image url user in my application.
Currently I build my project everytime if there is any path change for image used in application or rest api. I want to avoid it and need some config file where i can set this path. Any input will be helpful.