fix: NEXT_PUBLIC_* URLs als Docker Build-Args weitergereicht

This commit is contained in:
Michess
2026-04-13 11:36:47 +02:00
parent c056b93459
commit 47d9464ad4
2 changed files with 11 additions and 1 deletions

View File

@@ -14,6 +14,12 @@ RUN corepack enable && \
pnpm config set store-dir /opt/michess/.pnpm-store && \
pnpm install --no-frozen-lockfile
# Build-time env vars for Next.js (baked into the frontend bundle)
ARG NEXT_PUBLIC_API_URL=http://localhost:3001
ARG NEXT_PUBLIC_APP_URL=http://localhost:3000
ENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL
ENV NEXT_PUBLIC_APP_URL=$NEXT_PUBLIC_APP_URL
# Build server and client
RUN pnpm build:server && pnpm build:client