Skip to content

Commit

Permalink
fix: NEXT_PUBLIC_API_ROUTE_PREFIX not set during the pwa image building
Browse files Browse the repository at this point in the history
  • Loading branch information
botisSmile committed Oct 31, 2024
1 parent a964033 commit cfc6e7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 2 additions & 0 deletions docker/front/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit cfc6e7d

Please sign in to comment.