How can I declare 2 different proxy URLs for development and production environments in Angular 2 CLI project? For example, while in development mode, I would like to use
{
"/api/*": {
"target": "http://localhost:3000",
"secure": false
}
}
but in production mode, I will use
{
"/api/*": {
"target": "http://api.exampledomain.com",
"secure": false
}
}