From 8a0ca1cdc42890c317d4a143f1277b184a6a9be8 Mon Sep 17 00:00:00 2001 From: Andrew Cain Date: Thu, 6 Mar 2025 20:37:14 +1100 Subject: [PATCH] chore: add proxy for running in dev using compose --- package.json | 2 ++ proxy-compose.conf.json | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 proxy-compose.conf.json diff --git a/package.json b/package.json index a3e5c190a..fe262a3f6 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/proxy-compose.conf.json b/proxy-compose.conf.json new file mode 100644 index 000000000..4b6259123 --- /dev/null +++ b/proxy-compose.conf.json @@ -0,0 +1,6 @@ +{ + "/api": { + "target": "http://doubtfire-api:3000", + "secure": false + } +}