From dfdffca7ef7a13b7ae5001962659a4fd89e320a3 Mon Sep 17 00:00:00 2001 From: keyhan Date: Mon, 6 Apr 2026 01:00:25 +0330 Subject: [PATCH] fix: use npm install instead of npm ci for more resilient builds npm ci fails when package-lock.json is out of sync with package.json, which is common with GitHub-downloaded ZIPs. Switched to npm install with --legacy-peer-deps flag for maximum compatibility. --- backend/src/build/build.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/build/build.service.ts b/backend/src/build/build.service.ts index 94f3d3f..7b916a8 100644 --- a/backend/src/build/build.service.ts +++ b/backend/src/build/build.service.ts @@ -293,7 +293,7 @@ export class BuildService { FROM node:20-alpine AS builder WORKDIR /app COPY package*.json ./ -RUN if [ -f package-lock.json ]; then npm ci; else npm install; fi && npm cache clean --force +RUN npm install --legacy-peer-deps && npm cache clean --force COPY . . # Auto-detect Next.js and enable standalone output