fix: force PRISMA_BINARY_TARGETS env var to override OpenSSL detection

This commit is contained in:
sepehr 2026-01-12 00:34:17 +01:00
parent 5eec0bb921
commit df70ccbd62

View File

@ -20,7 +20,10 @@ WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
# Generate Prisma Client (will use debian-openssl-3.0.x from schema)
# Force Prisma to use OpenSSL 3.x (Debian 12)
ENV PRISMA_BINARY_TARGETS=native,debian-openssl-3.0.x
# Generate Prisma Client with forced binary target
RUN npx prisma generate
# Build Next.js with Webpack