diff --git a/Dockerfile b/Dockerfile index 8360781..e75648f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,6 +23,13 @@ ENV NODE_ENV=production # that matters on a 1-vCPU host) and 116 MB off this layer. ENV CI_BUILD=1 +# Backend origin for httpClient.ts. Set here rather than in Dokploy because +# NEXT_PUBLIC_* is inlined into the client bundle at BUILD time — a runtime env +# var would have no effect. +# ORIGIN ONLY, no path: authRepository appends /api/auth/login itself, so the +# full endpoint here would request /api/auth/login/api/auth/login. +ENV NEXT_PUBLIC_API_BASE=https://platform.loyaly.ai + RUN npm run build # Stage 3: Production runner with Next.js Standalone