上线
This commit is contained in:
parent
d256b4df7f
commit
54d891f374
47
README.md
47
README.md
@ -45,6 +45,26 @@ npm run dev
|
||||
访问 http://localhost:3000
|
||||
|
||||
### 快速部署
|
||||
|
||||
#### 使用 PowerShell 脚本(推荐)
|
||||
```powershell
|
||||
# 静态网站部署
|
||||
.\deploy.ps1 -Platform static
|
||||
|
||||
# Vercel 部署
|
||||
.\deploy.ps1 -Platform vercel
|
||||
|
||||
# Netlify 部署
|
||||
.\deploy.ps1 -Platform netlify
|
||||
|
||||
# GitHub Pages 部署
|
||||
.\deploy.ps1 -Platform github
|
||||
|
||||
# Docker 部署
|
||||
.\deploy.ps1 -Platform docker
|
||||
```
|
||||
|
||||
#### 手动部署
|
||||
```bash
|
||||
# 1. 生成静态文件
|
||||
npm run build:static
|
||||
@ -56,6 +76,33 @@ npx vercel
|
||||
npx netlify deploy --dir=out --prod
|
||||
```
|
||||
|
||||
#### 其他部署命令
|
||||
```bash
|
||||
# 类型检查
|
||||
npm run type-check
|
||||
|
||||
# 代码检查
|
||||
npm run lint
|
||||
|
||||
# 清理构建文件
|
||||
npm run clean
|
||||
|
||||
# 预览生产版本
|
||||
npm run preview
|
||||
|
||||
# Vercel 部署
|
||||
npm run deploy:vercel
|
||||
|
||||
# Netlify 部署
|
||||
npm run deploy:netlify
|
||||
|
||||
# Docker 构建
|
||||
npm run docker:build
|
||||
|
||||
# Docker 运行
|
||||
npm run docker:run
|
||||
```
|
||||
|
||||
### 构建与部署
|
||||
|
||||
#### 静态站点生成 (SSG)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user