fix: pass NEXT_PUBLIC_API_URL as Docker build ARG so Next.js bakes it into bundle
Some checks are pending
CI / Engine — lint / typecheck / test (push) Waiting to run
CI / API — lint / typecheck / test (push) Waiting to run
CI / Web — typecheck / lint / build (push) Waiting to run

This commit is contained in:
Manohar Gupta 2026-05-15 05:15:25 +00:00
parent e097b5f17b
commit ef3f2ace25

View file

@ -15,6 +15,10 @@ RUN test -f .env.local || echo "# placeholder" > .env.local
# Install dependencies # Install dependencies
RUN pnpm install --frozen-lockfile --ignore-scripts RUN pnpm install --frozen-lockfile --ignore-scripts
# Inject NEXT_PUBLIC_API_URL at build time (Next.js bakes NEXT_PUBLIC_* into the bundle)
ARG NEXT_PUBLIC_API_URL
ENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL
# Build # Build
RUN pnpm build RUN pnpm build