From 61fdb6ebcd2a0549f892628c2a574a65b088bd68 Mon Sep 17 00:00:00 2001 From: zlwu <704541015@qq.com> Date: Fri, 23 Oct 2026 16:07:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Drone=20web-admin=20=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E6=8F=90=E9=AB=98=20Node=20=E5=A0=86=E5=88=B0=203GB=20?= =?UTF-8?q?=E4=BB=A5=E9=99=8D=E4=BD=8E=20OOM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- .drone.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 038660b2..11655f66 100644 --- a/.drone.yml +++ b/.drone.yml @@ -22,7 +22,7 @@ steps: - name: build-web-admin image: node:20-bookworm environment: - NODE_OPTIONS: --max-old-space-size=1536 + NODE_OPTIONS: --max-old-space-size=3072 commands: - set -eu - cp web-admin/.env.docker web-admin/.env.test @@ -30,7 +30,8 @@ steps: - corepack prepare pnpm@9.15.9 --activate - cd web-admin - pnpm install --frozen-lockfile - - pnpm build:test + # 降低并行以减轻内存峰值 + - NODE_OPTIONS=--max-old-space-size=3072 pnpm exec vite build --mode test - cd .. - mkdir -p artifacts - tar -C web-admin -czf artifacts/web-admin-dist.tar.gz dist