From df6ce133dd26f3f52d5e5bc9dbfc6cdde50e0d9b Mon Sep 17 00:00:00 2001 From: zlwu <704541015@qq.com> Date: Sat, 24 Oct 2026 14:24:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20CI=20web=20=E6=9E=84=E5=BB=BA=E5=A0=86?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=206144MB=EF=BC=8C=E5=8C=B9=E9=85=8D=E5=89=8D?= =?UTF-8?q?=E7=AB=AF=E5=AE=9E=E9=99=85=E5=86=85=E5=AD=98=E9=9C=80=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 4c7b8f44..63625816 100644 --- a/.drone.yml +++ b/.drone.yml @@ -46,8 +46,8 @@ steps: - mkdir -p "/hzdyjs-releases/${DRONE_TAG}" - cd web - npm install --legacy-peer-deps --no-audit --no-fund - # 测试机物理内存约 3.6G;配合加大后的 swap,堆设 3584 避免 OOM 又不过分挤爆 - - node --max-old-space-size=3584 node_modules/vite/bin/vite.js build --mode production + # 本前端生产构建实测需约 6G+ 堆;测试机靠扩容 swap(/swap-hzdyjs)硬扛 + - node --max-old-space-size=6144 node_modules/vite/bin/vite.js build --mode production - test -f dist/index.html - tar -C dist -czf "/hzdyjs-releases/${DRONE_TAG}/web-${DRONE_TAG}.tar.gz" . - ls -lh "/hzdyjs-releases/${DRONE_TAG}/web-${DRONE_TAG}.tar.gz"