feat(deployment): 优化宝塔 PM2 standalone 部署流程并添加一键部署脚本
Some checks failed
lotteryadmin CI / build (push) Has been cancelled

This commit is contained in:
2026-07-07 15:32:19 +08:00
parent 99e644caa1
commit 70250696ea
4 changed files with 30 additions and 6 deletions

View File

@@ -4,7 +4,7 @@
"private": true,
"scripts": {
"dev": "NEXT_DISABLE_MEM_OVERRIDE=1 NODE_OPTIONS='--max-old-space-size=3072' next dev --port 3801",
"build": "next build",
"build": "next build && cp -r .next/static .next/standalone/.next/static && cp -r public .next/standalone/public && echo '✅ standalone 静态资源已复制完毕'",
"start": "next start --port 3801",
"lint": "eslint"
},