fix(backend): fixed cors error on build dev environment

This commit is contained in:
Bernhard Müller 2026-07-27 17:52:47 +02:00
parent cbfde17217
commit bcc8b315ca
3 changed files with 23 additions and 1 deletions

View File

@ -20,7 +20,7 @@ COPY eeg_frontend/openapi.yaml ./
RUN npx openapi-generator-cli generate -i ./openapi.yaml -g typescript-angular -o ./src/app/api
COPY eeg_frontend/ ./
RUN npm run build -- --configuration production
RUN npm run build -- --configuration staging
# ---- Stage 2: Build Spring Boot Backend ----
FROM maven:3.9-eclipse-temurin-21 AS backend-build

View File

@ -48,6 +48,21 @@
],
"outputHashing": "all"
},
"staging": {
"budgets": [
{
"type": "initial",
"maximumWarning": "500kB",
"maximumError": "1MB"
},
{
"type": "anyComponentStyle",
"maximumWarning": "4kB",
"maximumError": "8kB"
}
],
"outputHashing": "all"
},
"development": {
"optimization": false,
"extractLicenses": false,
@ -62,6 +77,9 @@
"production": {
"buildTarget": "eeg_frontend:build:production"
},
"staging": {
"buildTarget": "eeg_frontend:build:production"
},
"development": {
"buildTarget": "eeg_frontend:build:development"
}

View File

@ -0,0 +1,4 @@
export const environment = {
production: false,
apiUrl: 'https://preview.coolify.mueller-dev.com'
};