fix(build) added staging environment at buildingtime

This commit is contained in:
Semmal 2026-07-28 10:06:57 +00:00
parent f8b4043b37
commit 2c3c80f379

View file

@ -19,11 +19,11 @@ RUN npm ci --prefer-offline
COPY eeg_frontend/openapi.yaml ./
RUN npx openapi-generator-cli generate -i ./openapi.yaml -g typescript-angular -o ./src/app/api
COPY eeg_frontend/ ./
ARG VITE_OR_ANGULAR_BACKEND_URL
ENV BACKEND_URL=$VITE_OR_ANGULAR_BACKEND_URL
RUN sed -i "s|https://API_URL_PLACEHOLDER|${BACKEND_URL}|g" eeg_frontend/src/environments/environment.staging.ts
RUN sed -i "s|https://API_URL_PLACEHOLDER|${BACKEND_URL}|g" src/environments/environment.staging.ts
COPY eeg_frontend/ ./
RUN npm run build -- --configuration staging
# ---- Stage 2: Build Spring Boot Backend ----