diff --git a/angular/RestClient/angular.json b/angular/RestClient/angular.json index 6f0edcd86785afd8cc8db5af00a9e2da641eb1d0..3243daedc8b0b9025b72c21b06f29ba413b7cc20 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 0000000000000000000000000000000000000000..651356867af69ca2928b74c4d0f1b43bbf43a683 --- /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`, +};