From a2316fcacec6dcafaa332521159a915b30073e70 Mon Sep 17 00:00:00 2001 From: Gabriel De Los Rios Date: Sat, 8 Nov 2025 12:54:32 -0300 Subject: [PATCH] build: add environments --- angular.json | 8 +++++++- src/environments/environment.development.ts | 3 +++ src/environments/environment.ts | 3 +++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 src/environments/environment.development.ts create mode 100644 src/environments/environment.ts diff --git a/angular.json b/angular.json index 2863aec..92bb78f 100644 --- a/angular.json +++ b/angular.json @@ -52,7 +52,13 @@ "development": { "optimization": false, "extractLicenses": false, - "sourceMap": true + "sourceMap": true, + "fileReplacements": [ + { + "replace": "src/environments/environment.ts", + "with": "src/environments/environment.development.ts" + } + ] } }, "defaultConfiguration": "production" diff --git a/src/environments/environment.development.ts b/src/environments/environment.development.ts new file mode 100644 index 0000000..072ccf4 --- /dev/null +++ b/src/environments/environment.development.ts @@ -0,0 +1,3 @@ +export const environment = { + apiUrl: 'http://localhost:4444' +}; diff --git a/src/environments/environment.ts b/src/environments/environment.ts new file mode 100644 index 0000000..9a56100 --- /dev/null +++ b/src/environments/environment.ts @@ -0,0 +1,3 @@ +export const environment = { + apiUrl: 'http://localhost:333' +};