This commit is contained in:
iriver
2025-07-09 00:13:41 +08:00
parent 0bfcbe54b1
commit 9376a67052
11 changed files with 2028 additions and 8 deletions

36
docs/deployment/README.md Normal file
View File

@ -0,0 +1,36 @@
# 部署文档
本目录包含摄影作品集项目的部署相关文档。
## 目录结构
- `environments.md` - 环境配置说明
- `vercel-deployment.md` - Vercel 部署指南
- `docker-deployment.md` - Docker 部署指南
- `ci-cd.md` - CI/CD 配置说明
- `monitoring.md` - 监控和日志配置
- `backup.md` - 备份策略
## 部署准备
在部署前,请确保完成以下步骤:
1. 代码检查: `make lint`
2. 类型检查: `make type-check`
3. 构建测试: `make build`
4. 完整部署准备: `make deploy-prep`
## 环境变量
确保在部署环境中配置以下环境变量:
```bash
NEXT_PUBLIC_API_URL=your-api-url
```
## 支持的部署平台
- Vercel (推荐)
- Netlify
- Docker
- 传统服务器部署