Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🔧 chore: increase memory limit for build analysis in package.json and… (#11369)

Innei11c5b8a26bba
diff --git a/.github/workflows/bundle-analyzer.yml b/.github/workflows/bundle-analyzer.yml
index d1f55972fca..ff8950df1c4 100644
--- a/.github/workflows/bundle-analyzer.yml
+++ b/.github/workflows/bundle-analyzer.yml
@@ -55,9 +55,9 @@ jobs:
run: echo "secret=$(openssl rand -base64 32)" >> $GITHUB_OUTPUT
- name: Build with bundle analyzer
- run: bun run build:analyze || true
+ run: npm run build:analyze || true
env:
- NODE_OPTIONS: --max-old-space-size=8192
+ NODE_OPTIONS: --max-old-space-size=81920
KEY_VAULTS_SECRET: ${{ secrets.KEY_VAULTS_SECRET || steps.generate-secret.outputs.secret }}
- name: Prepare analyzer reports
diff --git a/package.json b/package.json
index 695d594555b..17df148f9fa 100644
--- a/package.json
+++ b/package.json
@@ -37,7 +37,7 @@
"postbuild": "npm run build-sitemap && npm run build-migrate-db",
"build-migrate-db": "bun run db:migrate",
"build-sitemap": "tsx ./scripts/buildSitemapIndex/index.ts",
- "build:analyze": "NODE_OPTIONS=--max-old-space-size=8192 ANALYZE=true next build --webpack",
+ "build:analyze": "NODE_OPTIONS=--max-old-space-size=81920 ANALYZE=true next build --webpack",
"build:docker": "npm run prebuild && NODE_OPTIONS=--max-old-space-size=8192 DOCKER=true next build --webpack && npm run build-sitemap",
"build:electron": "cross-env NODE_OPTIONS=--max-old-space-size=8192 NEXT_PUBLIC_IS_DESKTOP_APP=1 tsx scripts/electronWorkflow/buildNextApp.mts",
"build:vercel": "npm run prebuild && cross-env NODE_OPTIONS=--max-old-space-size=6144 next build --webpack && npm run postbuild",