Skip to content

Commit

Permalink
chore: add proxy for running in dev using compose
Browse files Browse the repository at this point in the history
  • Loading branch information
macite committed Mar 6, 2025
1 parent 72c89b3 commit 8a0ca1c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
"lint:fix": "ng lint --fix",
"lint": "ng lint",
"serve:angular17": "export NODE_OPTIONS=--max_old_space_size=4096 && ng serve --configuration $NODE_ENV --proxy-config proxy.conf.json",
"serve:angular17-compose": "export NODE_OPTIONS=--max_old_space_size=4096 && ng serve --configuration $NODE_ENV --proxy-config proxy-compose.conf.json",
"start": "npm-run-all -l -s build:angular1 serve:angular17",
"start-compose": "npm-run-all -l -s build:angular1 serve:angular17-compose",
"watch:angular1": "grunt delta",
"deploy:build2api": "ng build --delete-output-path=true --optimization=true --configuration production --output-path dist",
"deploy": "run-s -l build:angular1 deploy:build2api",
Expand Down
6 changes: 6 additions & 0 deletions proxy-compose.conf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"/api": {
"target": "http://doubtfire-api:3000",
"secure": false
}
}

0 comments on commit 8a0ca1c

Please sign in to comment.