diff --git a/Dockerfile b/Dockerfile index 8e92352..bd1c218 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,6 +19,10 @@ 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 +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 + COPY eeg_frontend/ ./ RUN npm run build -- --configuration staging diff --git a/eeg_frontend/src/environments/environment.staging.ts b/eeg_frontend/src/environments/environment.staging.ts index 01a4e5a..a864a08 100644 --- a/eeg_frontend/src/environments/environment.staging.ts +++ b/eeg_frontend/src/environments/environment.staging.ts @@ -1,4 +1,4 @@ export const environment = { - production: false, - apiUrl: 'https://preview.coolify.mueller-dev.com' + production: true, + apiUrl: 'https://API_URL_PLACEHOLDER' };