fix(build) added staging environment at buildingtime
This commit is contained in:
parent
f8b4043b37
commit
2c3c80f379
1 changed files with 2 additions and 2 deletions
|
|
@ -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 ----
|
||||
|
|
|
|||
Loading…
Reference in a new issue