Debug: Add echo for NEXT_PUBLIC_API_BASE_URL in frontend Dockerfile

To verify the value of NEXT_PUBLIC_API_BASE_URL available during
the frontend build stage, this commit adds an echo command to the
`new-frontend/Dockerfile`.

This will print the variable's value to the build logs immediately
before the `npm run build` command is executed. This helps diagnose
issues with the API base URL not being correctly passed or utilized
by the Next.js application, leading to incorrect API calls.
This commit is contained in:
google-labs-jules[bot] 2025-06-05 10:32:27 +00:00
parent b09e953450
commit 471579f053

View file

@ -10,6 +10,7 @@ RUN npm install
COPY . .
ARG NEXT_PUBLIC_API_BASE_URL
ENV NEXT_PUBLIC_API_BASE_URL=$NEXT_PUBLIC_API_BASE_URL
RUN echo "NEXT_PUBLIC_API_BASE_URL in Dockerfile build stage is: [$NEXT_PUBLIC_API_BASE_URL]"
RUN npm run build
# Stage 2: Production environment