fix(frontend): add build-time ARG placeholders for NEXTAUTH_URL/SECRET/BACKEND_URL
Deploy to Production / test (push) Has been cancelled
Deploy to Production / deploy (push) Has been cancelled

This commit is contained in:
Patrick Plate
2026-06-13 09:27:01 +02:00
parent d0c53a912c
commit 106229e0e3
+8
View File
@@ -12,6 +12,14 @@ COPY --from=deps /app/node_modules ./node_modules
COPY . .
ENV NEXT_TELEMETRY_DISABLED=1
# Provide placeholder build-time values so Next.js SSG doesn't crash on undefined URLs
# Real values are injected at runtime via docker-compose environment:
ARG NEXTAUTH_URL=http://localhost:3000
ARG NEXTAUTH_SECRET=build-time-placeholder-secret-minimum-32-chars
ARG BACKEND_URL=http://localhost:8080
ENV NEXTAUTH_URL=${NEXTAUTH_URL}
ENV NEXTAUTH_SECRET=${NEXTAUTH_SECRET}
ENV BACKEND_URL=${BACKEND_URL}
RUN pnpm build
FROM base AS runner