From 471579f05336432afe17d39cbe93ab71c8fd8305 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 10:32:27 +0000 Subject: [PATCH] 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. --- new-frontend/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/new-frontend/Dockerfile b/new-frontend/Dockerfile index 8d19eb14..4f967f7e 100644 --- a/new-frontend/Dockerfile +++ b/new-frontend/Dockerfile @@ -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