fix(backend): fixed cors error on build dev environment
This commit is contained in:
parent
61ac416ad5
commit
f8b4043b37
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ RUN npx openapi-generator-cli generate -i ./openapi.yaml -g typescript-angular -
|
|||
|
||||
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" src/environments/environment.staging.ts
|
||||
RUN sed -i "s|https://API_URL_PLACEHOLDER|${BACKEND_URL}|g" eeg_frontend/src/environments/environment.staging.ts
|
||||
|
||||
COPY eeg_frontend/ ./
|
||||
RUN npm run build -- --configuration staging
|
||||
|
|
|
|||
Loading…
Reference in a new issue