From f7df514363cf60c9f6d620f49e5e64acad1725f2 Mon Sep 17 00:00:00 2001 From: MantisClone Date: Tue, 25 Mar 2025 12:43:20 -0400 Subject: [PATCH 1/2] refactor: remove unused build.yml config vars --- .github/workflows/build.yml | 8 -------- nixpacks.toml | 2 -- 2 files changed, 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4822aae..36519e9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,10 +17,6 @@ concurrency: jobs: build: runs-on: ubuntu-latest - timeout-minutes: 15 - container: - image: node:18 - options: --memory=8g steps: - name: Checkout uses: actions/checkout@v4 @@ -41,12 +37,8 @@ jobs: - name: Build run: | - ulimit -S -c unlimited npm run build env: NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID }} NODE_OPTIONS: "--max_old_space_size=7680" - NEXT_TELEMETRY_DISABLED: "1" - NPM_CONFIG_PRODUCTION: "false" NODE_ENV: "production" - timeout-minutes: 10 diff --git a/nixpacks.toml b/nixpacks.toml index 85c5072..e8c481c 100644 --- a/nixpacks.toml +++ b/nixpacks.toml @@ -21,8 +21,6 @@ cmd = 'npm start' [variables] NODE_ENV = 'production' NODE_OPTIONS = '--max_old_space_size=2048' -NPM_CONFIG_PRODUCTION = 'false' -NEXT_TELEMETRY_DISABLED = '1' [nixpacks] start-command = 'npm start' From e4a13c225e165417947e40db80f731ea66c809f3 Mon Sep 17 00:00:00 2001 From: MantisClone Date: Tue, 25 Mar 2025 12:46:23 -0400 Subject: [PATCH 2/2] fix: increase max-old-space-size to 15 GiB --- .github/workflows/build.yml | 6 +++++- nixpacks.toml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 36519e9..1d4b4b2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,5 +40,9 @@ jobs: npm run build env: NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID }} - NODE_OPTIONS: "--max_old_space_size=7680" NODE_ENV: "production" + + # Set --max_old_space_size to 15 GiB + # Default is 16 GiB. Leave 1 GiB for the system. + # Ref: https://docs.github.com/en/enterprise-cloud@latest/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories + NODE_OPTIONS: "--max-old-space-size=15360" diff --git a/nixpacks.toml b/nixpacks.toml index e8c481c..02547e3 100644 --- a/nixpacks.toml +++ b/nixpacks.toml @@ -20,7 +20,7 @@ cmd = 'npm start' [variables] NODE_ENV = 'production' -NODE_OPTIONS = '--max_old_space_size=2048' +NODE_OPTIONS = '--max-old-space-size=2048' [nixpacks] start-command = 'npm start'