From 4e3710655e524d62dde4725886b65e7eed75473c Mon Sep 17 00:00:00 2001 From: Martin Porwoll Date: Tue, 17 Feb 2026 12:03:48 +0000 Subject: [PATCH] fix(ci): increase build heap limit from 2GB to 4GB The codebase grew past the 2GB heap limit with security/monitoring additions. cross-env in build script overrides CI NODE_OPTIONS, so the limit must be set in package.json itself. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/ci.yml | 1 - package.json | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c5f32c..0816464 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -212,7 +212,6 @@ jobs: - name: Build application run: pnpm build env: - NODE_OPTIONS: '--max-old-space-size=4096' # Minimal env vars for build PAYLOAD_SECRET: build-secret-placeholder DATABASE_URI: postgresql://placeholder:placeholder@localhost:5432/placeholder diff --git a/package.json b/package.json index 1ba426a..afcdb9f 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "license": "MIT", "type": "module", "scripts": { - "build": "cross-env NODE_OPTIONS=\"--no-deprecation --max-old-space-size=2048\" next build", + "build": "cross-env NODE_OPTIONS=\"--no-deprecation --max-old-space-size=4096\" next build", "dev": "cross-env NODE_OPTIONS=--no-deprecation next dev", "devsafe": "rm -rf .next && cross-env NODE_OPTIONS=--no-deprecation next dev", "generate:importmap": "cross-env NODE_OPTIONS=--no-deprecation payload generate:importmap",