From 67e1ed144f892398df294dccdae39d4aca3cf49f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernhard=20M=C3=BCller?= Date: Mon, 27 Jul 2026 18:01:55 +0200 Subject: [PATCH] fix(backend): fixed cors error on build dev environment --- eeg_frontend/angular.json | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/eeg_frontend/angular.json b/eeg_frontend/angular.json index 3232bc4..e25a3e1 100644 --- a/eeg_frontend/angular.json +++ b/eeg_frontend/angular.json @@ -49,16 +49,10 @@ "outputHashing": "all" }, "staging": { - "budgets": [ + "fileReplacements": [ { - "type": "initial", - "maximumWarning": "500kB", - "maximumError": "1MB" - }, - { - "type": "anyComponentStyle", - "maximumWarning": "4kB", - "maximumError": "8kB" + "replace": "src/environments/environment.ts", + "with": "src/environments/environment.staging.ts" } ], "outputHashing": "all" @@ -78,7 +72,7 @@ "buildTarget": "eeg_frontend:build:production" }, "staging": { - "buildTarget": "eeg_frontend:build:production" + "buildTarget": "eeg_frontend:build:staging" }, "development": { "buildTarget": "eeg_frontend:build:development"