From c9ccaf490e18c877c3ebb601daeb17a9d6b897df Mon Sep 17 00:00:00 2001 From: Florian Eisenmenger Date: Thu, 4 Apr 2024 13:11:13 +0200 Subject: [PATCH] build: environments --- matsen-tool/angular.json | 12 +++++++++--- .../src/environments/environment.development.ts | 5 +++++ 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 matsen-tool/src/environments/environment.development.ts diff --git a/matsen-tool/angular.json b/matsen-tool/angular.json index eeecd38..2e1380e 100644 --- a/matsen-tool/angular.json +++ b/matsen-tool/angular.json @@ -51,8 +51,8 @@ "budgets": [ { "type": "initial", - "maximumWarning": "500kb", - "maximumError": "1mb" + "maximumWarning": "1mb", + "maximumError": "2mb" }, { "type": "anyComponentStyle", @@ -65,7 +65,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/matsen-tool/src/environments/environment.development.ts b/matsen-tool/src/environments/environment.development.ts new file mode 100644 index 0000000..7ec8de0 --- /dev/null +++ b/matsen-tool/src/environments/environment.development.ts @@ -0,0 +1,5 @@ +export const environment = { + production: false, + basePath: 'https://matsen-api.spawntree.de', + apiUrl: 'https://matsen-api.spawntree.de/api' +};