From c30ea57bb8f25195b717291b405d6cac1591845d Mon Sep 17 00:00:00 2001 From: Daniel Ponte Date: Sun, 5 Jan 2025 11:47:26 -0500 Subject: [PATCH] Add ng serve proxy so we can play calls in devel --- client/stillbox/angular.json | 7 +++++++ .../stillbox/src/environments/environment.development.ts | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/client/stillbox/angular.json b/client/stillbox/angular.json index e130a69..7807679 100644 --- a/client/stillbox/angular.json +++ b/client/stillbox/angular.json @@ -61,6 +61,10 @@ "optimization": false, "extractLicenses": false, "sourceMap": true, + "index": { + "input": "src/index.dev_nocsp.html", + "output": "index.html" + }, "fileReplacements": [ { "replace": "src/environments/environment.ts", @@ -73,6 +77,9 @@ }, "serve": { "builder": "@angular-devkit/build-angular:dev-server", + "options": { + "proxyConfig": "src/proxy.conf.json" + }, "configurations": { "production": { "buildTarget": "stillbox:build:production" diff --git a/client/stillbox/src/environments/environment.development.ts b/client/stillbox/src/environments/environment.development.ts index 247eb12..e67cb31 100644 --- a/client/stillbox/src/environments/environment.development.ts +++ b/client/stillbox/src/environments/environment.development.ts @@ -1,3 +1,3 @@ export const environment = { - baseUrl: 'http://xenon:3050', + baseUrl: '', };