angular cli build in prod with dev env settings code example
Example 1: angular build production
ng build --configuration=<env> --output-hashing=all
Example 2: adding prod environment file in angular8
content_copy
{
"/api": {
"target": "http://localhost:3000",
"secure": false,
"pathRewrite": {
"^/api": ""
}
}
}