Fix regression, BACKEND_URL now only processed at request-time

Former-commit-id: da14f44e910786e9e21b5968b77e97a94f2876ab
This commit is contained in:
David Parry
2026-03-12 11:18:23 +11:00
parent c986de9e35
commit 40e89ac30b
4 changed files with 25 additions and 16 deletions
-4
View File
@@ -11,10 +11,6 @@ WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
ENV NEXT_TELEMETRY_DISABLED 1
# NEXT_PUBLIC_* vars must exist at build time for Next.js to inline them.
# Default empty = auto-detect from browser hostname at runtime.
ARG NEXT_PUBLIC_API_URL=""
ENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL
RUN npm run build
FROM base AS runner