From 2cf0378270e907725c656c35d22875b28da6b738 Mon Sep 17 00:00:00 2001 From: dahoud Date: Fri, 24 Oct 2025 08:04:55 +0000 Subject: [PATCH] Fix: Add NODE_ENV=production during Next.js build to load .env.production Next.js only loads .env.production when NODE_ENV=production is set during build time. Previously, NODE_ENV was only set in the runner stage, causing the builder stage to ignore .env.production and use default values. This fixes NEXT_PUBLIC_API_URL to correctly point to https://api.lions.dev/btpxpress instead of just https://api.lions.dev. --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 45ed2f4..88570c5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,6 +20,7 @@ RUN npm ci COPY . . # Build Next.js application +ENV NODE_ENV production ENV NEXT_TELEMETRY_DISABLED 1 RUN npm run build