golc
|
78e73fcb8f
|
fix: 完全修复 Vercel 部署配置
核心修复:
- 从 src 导入模块而非 dist(让 TypeScript 编译器处理)
- vercel.json 路由指向构建后的 dist/api/index.js
- 简化导入逻辑,移除动态路径拼接
- 本地构建测试通过
技术细节:
- api/index.ts 从 ../src/app.module 导入
- NestJS 构建会将其编译到 dist/api/index.js
- Vercel 执行构建后直接使用编译结果
- CORS 设置为 origin: true 允许所有来源
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-03-04 09:39:57 +00:00 |
golc
|
aef3acb6dc
|
fix: 改进 Vercel serverless 配置和路径处理
- 修复 vercel.json 构建配置
- 使用 path.join 处理文件路径
- 添加更详细的日志输出
- 改进错误处理和回退机制
- 添加 installCommand 确保正确构建
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-03-04 09:35:08 +00:00 |
golc
|
b235f2fdf6
|
fix: 修复 Vercel 部署路径和依赖问题
- 添加 express 依赖到 package.json
- 使用动态 import 加载构建后的模块
- 简化 vercel.json 配置,让 Vercel 自动处理构建
- 添加错误处理和日志输出
- 修复模块路径引用问题
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-03-04 09:30:46 +00:00 |
golc
|
1d8213f6ed
|
feat: 配置 Vercel serverless 部署支持
- 更新 vercel.json 使用 serverless 函数入口
- 添加 api/index.ts 作为 Vercel serverless handler
- 添加 .env.vercel 环境变量配置模板
- 支持 Swagger 文档在 serverless 环境运行
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-03-04 09:19:00 +00:00 |
lichao
|
c505421544
|
fix: use npx for nest build commands to avoid permission issues
|
2026-02-25 12:04:54 +00:00 |
lichao
|
1dc6715345
|
fix: add buildCommand and outputDirectory to vercel.json
|
2026-02-25 11:59:30 +00:00 |
golc
|
ec17b894a6
|
feat: initial commit with Vercel CI/CD
|
2026-02-25 09:42:55 +00:00 |
golc
|
443e2b6518
|
fix: 修正 Vercel 配置指向构建后的文件
- 将 vercel.json 中的入口文件从 src/main.ts 改为 dist/main.js
- 确保 Vercel 使用编译后的 JavaScript 文件
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-02-24 14:26:22 +00:00 |
golc
|
b88b4d5156
|
feat: 迁移到 Vercel 部署
- 移除 Gitea Actions 配置
- 添加 Vercel 配置文件
- 配置 Serverless 函数路由
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-02-24 13:50:35 +00:00 |