mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-07-01 20:42:07 +00:00
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:
parent
b09e953450
commit
471579f053
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue