This commit is contained in:
Your Name
2026-04-16 13:05:07 +08:00
commit 32efff1670
99 changed files with 9974 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
#!/usr/bin/env bash
set -euo pipefail
PROJECT_ROOT="/opt/domaincheck/domain-web"
cd "$PROJECT_ROOT"
if [ ! -f ".env.production" ]; then
echo "缺少 .env.production请先参考 .env.production.example 创建。"
exit 1
fi
if ! command -v npm >/dev/null 2>&1; then
echo "未找到 npm请先安装 Node.js。"
exit 1
fi
echo "安装依赖..."
npm install
echo "构建生产包..."
npm run build
echo "构建完成dist 目录位于: $PROJECT_ROOT/dist"