fix: add dummy build-time env vars to Dockerfile for Next.js page data collection

This commit is contained in:
ralksta
2026-02-15 21:59:53 +01:00
parent 4b80af1c29
commit faaad4cbc7

View File

@@ -12,6 +12,13 @@ WORKDIR /app
COPY package.json package-lock.json ./ COPY package.json package-lock.json ./
RUN npm ci RUN npm ci
COPY . . COPY . .
# Dummy env vars for build — pages are force-dynamic so these are
# never used at runtime, but Next.js page-data collection imports
# env.ts which runs Zod validation on import.
ENV IMMICH_API_URL="http://localhost:2283"
ENV IMMICH_API_KEY="build-placeholder"
RUN npm run build RUN npm run build
# ── Runtime ─────────────────────────────────────── # ── Runtime ───────────────────────────────────────