From c98051f31de1f7ec8d8eda5161dcc798f703be4a Mon Sep 17 00:00:00 2001 From: hugcubi <hugo.cubino@estudiantes.uva.es> Date: Sun, 15 Dec 2024 11:24:47 +0000 Subject: [PATCH] =?UTF-8?q?Agregada=20configuraci=C3=B3n=20para=20monolito?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- angular/RestClient/angular.json | 11 +++++++++++ .../src/environments/environment.monolith.ts | 9 +++++++++ 2 files changed, 20 insertions(+) create mode 100644 angular/RestClient/src/environments/environment.monolith.ts diff --git a/angular/RestClient/angular.json b/angular/RestClient/angular.json index 6f0edcd..3243dae 100644 --- a/angular/RestClient/angular.json +++ b/angular/RestClient/angular.json @@ -56,6 +56,17 @@ ], "outputHashing": "all" }, + "monolith": { + "fileReplacements": [ + { + "replace": "src/environments/environment.ts", + "with": "src/environments/environment.monolith.ts" + } + ], + "optimization": false, + "extractLicenses": false, + "sourceMap": true + }, "development": { "optimization": false, "extractLicenses": false, diff --git a/angular/RestClient/src/environments/environment.monolith.ts b/angular/RestClient/src/environments/environment.monolith.ts new file mode 100644 index 0000000..6513568 --- /dev/null +++ b/angular/RestClient/src/environments/environment.monolith.ts @@ -0,0 +1,9 @@ +const monolith = 'localhost:8080'; // kong + +export const environment = { + production: false, + authAPI: `http://localhost:8101/auth`, + userAPI: `http://${monolith}/users`, + hotelAPI: `http://${monolith}/hotels`, + bookingAPI: `http://${monolith}/bookings`, +}; -- GitLab