fix(backend): fixed cors error on build dev environment
This commit is contained in:
parent
cbfde17217
commit
bcc8b315ca
@ -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
|
RUN npx openapi-generator-cli generate -i ./openapi.yaml -g typescript-angular -o ./src/app/api
|
||||||
|
|
||||||
COPY eeg_frontend/ ./
|
COPY eeg_frontend/ ./
|
||||||
RUN npm run build -- --configuration production
|
RUN npm run build -- --configuration staging
|
||||||
|
|
||||||
# ---- Stage 2: Build Spring Boot Backend ----
|
# ---- Stage 2: Build Spring Boot Backend ----
|
||||||
FROM maven:3.9-eclipse-temurin-21 AS backend-build
|
FROM maven:3.9-eclipse-temurin-21 AS backend-build
|
||||||
|
|||||||
@ -48,6 +48,21 @@
|
|||||||
],
|
],
|
||||||
"outputHashing": "all"
|
"outputHashing": "all"
|
||||||
},
|
},
|
||||||
|
"staging": {
|
||||||
|
"budgets": [
|
||||||
|
{
|
||||||
|
"type": "initial",
|
||||||
|
"maximumWarning": "500kB",
|
||||||
|
"maximumError": "1MB"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "anyComponentStyle",
|
||||||
|
"maximumWarning": "4kB",
|
||||||
|
"maximumError": "8kB"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"outputHashing": "all"
|
||||||
|
},
|
||||||
"development": {
|
"development": {
|
||||||
"optimization": false,
|
"optimization": false,
|
||||||
"extractLicenses": false,
|
"extractLicenses": false,
|
||||||
@ -62,6 +77,9 @@
|
|||||||
"production": {
|
"production": {
|
||||||
"buildTarget": "eeg_frontend:build:production"
|
"buildTarget": "eeg_frontend:build:production"
|
||||||
},
|
},
|
||||||
|
"staging": {
|
||||||
|
"buildTarget": "eeg_frontend:build:production"
|
||||||
|
},
|
||||||
"development": {
|
"development": {
|
||||||
"buildTarget": "eeg_frontend:build:development"
|
"buildTarget": "eeg_frontend:build:development"
|
||||||
}
|
}
|
||||||
|
|||||||
4
eeg_frontend/src/environments/environment.staging.ts
Normal file
4
eeg_frontend/src/environments/environment.staging.ts
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
export const environment = {
|
||||||
|
production: false,
|
||||||
|
apiUrl: 'https://preview.coolify.mueller-dev.com'
|
||||||
|
};
|
||||||
Loading…
Reference in New Issue
Block a user