mirror of
https://github.com/complexcaresolutions/cms.c2sgmbh.git
synced 2026-03-17 16:14:12 +00:00
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 <noreply@anthropic.com>
This commit is contained in:
parent
037835d1de
commit
4e3710655e
2 changed files with 1 additions and 2 deletions
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue