Having trouble building the application with proxy configuration. It works fine with ng serve or npm run start, but I need it to work with npm run build or ng build. After that, I want to deploy the dist folder to Tomcat webapps and make everything function properly. Can someone assist me with this? Any quick help would be greatly appreciated.
Below is the code:
proxy.conf.json
const PROXY_CONFIG = [
{
context : [
"/app-services"
],
target : "http://52.0.0.0:8080",
secure : false
}
]
module.exports = PROXY_CONFIG;
angular.json
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
// - snipped for brevity -
}
package.json
{
"name": "app-name",
"version": "0.0.0",
// - snipped for brevity -
}