Skip to content

Commit

Permalink
register proxy.conf.json in ng serve builder in angular.json
Browse files Browse the repository at this point in the history
  • Loading branch information
micahstubbs committed May 8, 2022
1 parent 783773e commit a01cf49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion helix-front/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "helix-front:build"
"browserTarget": "helix-front:build",
"proxyConfig": "./proxy.conf.json"
},
"configurations": {
"production": {
Expand Down
2 changes: 1 addition & 1 deletion helix-front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"scripts": {
"ng": "ng",
"build": "rm -rf dist && mkdir dist && ng build --aot --prod && tsc -p server",
"start": "tsc -p server && concurrently -r \"ng serve --pc proxy.conf.json\" \"tsc -w -p server\" \"nodemon dist/server/app.js\"",
"start": "tsc -p server && concurrently -r \"ng serve\" \"tsc -w -p server\" \"nodemon dist/server/app.js\"",
"prod": "npm run build && node dist/server/app.js",
"test": "ng test",
"lint": "ng lint",
Expand Down

0 comments on commit a01cf49

Please sign in to comment.