
When I tried to add proxy config file to angular.json showing property is not allowed.
Try instead putting the configuration at architect.serve.options rather than architect.build.options.
https://angular.io/guide/build#proxying-to-a-backend-server
As it said. proxyConfig is not allowed inside build.options object. I think you meant to add it in serve.options. If there are no options then create one:
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"proxyConfig": "src/proxy.conf.json"
},
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With