From b857579a1674db407775dc00c9fe528f8101ceb0 Mon Sep 17 00:00:00 2001 From: Botis Date: Wed, 30 Oct 2024 18:04:45 +0100 Subject: [PATCH] fix: NEXT_PUBLIC_API_ROUTE_PREFIX not set during the pwa image building --- compose.yml | 1 + docker/front/Dockerfile | 2 ++ 2 files changed, 3 insertions(+) diff --git a/compose.yml b/compose.yml index acaabdcba..a7f8a7180 100644 --- a/compose.yml +++ b/compose.yml @@ -92,6 +92,7 @@ services: args: - NEXT_PUBLIC_ENTRYPOINT=${SERVER_NAME:-gally.localhost} - NEXT_PUBLIC_API_URL=https://${API_SERVER_NAME:-${SERVER_NAME:-api.gally.localhost}}/${API_ROUTE_PREFIX:-} + - NEXT_PUBLIC_API_ROUTE_PREFIX=${API_ROUTE_PREFIX:-} - REACT_APP_API_URL=https://${SERVER_NAME:-${API_SERVER_NAME:-api.gally.localhost}}/${API_ROUTE_PREFIX:-} environment: - NEXT_PUBLIC_ENTRYPOINT=${SERVER_NAME:-gally.localhost} diff --git a/docker/front/Dockerfile b/docker/front/Dockerfile index b4c9c1efb..df65bbe7a 100644 --- a/docker/front/Dockerfile +++ b/docker/front/Dockerfile @@ -15,8 +15,10 @@ EXPOSE 3001 WORKDIR /usr/src/front ARG NEXT_PUBLIC_API_URL +ARG NEXT_PUBLIC_API_ROUTE_PREFIX ARG REACT_APP_API_URL ENV NEXT_PUBLIC_API_URL $NEXT_PUBLIC_API_URL +ENV NEXT_PUBLIC_API_ROUTE_PREFIX $NEXT_PUBLIC_API_ROUTE_PREFIX ENV REACT_APP_API_URL $REACT_APP_API_URL ENV NEXT_TELEMETRY_DISABLED 1