Commit Graph

15 Commits

Author SHA1 Message Date
golc 7185009c28 fix: 完整修复 Vercel 部署配置
关键修复:
- 设置 Node.js 版本为 18.x(Vercel 要求)
- 排除 api/ 目录不被 TypeScript 编译
- 简化 vercel.json,让 Vercel 自动处理构建
- api/index.ts 作为独立 serverless 函数运行

技术说明:
- Vercel 的 api/ 目录是特殊目录,自动识别为 serverless 函数
- api/index.ts 会被映射到 /api 路由
- src/ 目录正常编译到 dist/,供 api/index.ts 导入使用

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-04 09:54:02 +00:00
golc 302d5f5f7c revert: 恢复 Node.js 20.x 配置
- 恢复 engines 字段设置为 20.x
- 与 Vercel 项目设置保持一致

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-04 09:48:16 +00:00
golc 73555ac5f0 fix: 移除 engines 字段使用 Vercel 项目设置
- 移除 package.json 中的 engines 配置
- 让 Vercel 使用项目设置中配置的 Node.js 版本
- 避免版本冲突

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-04 09:46:03 +00:00
golc 8a7168e9b9 fix: 更新 Node.js 版本为 20.x
- Vercel 要求使用 20.x 或更高版本
- 修复版本不匹配错误

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-04 09:44:40 +00:00
golc d94b5f5895 fix: 指定 Node.js 18.x 版本
- 添加 engines 字段指定 Node.js 18.x
- 修复 Vercel 部署版本不匹配错误

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-04 09:43:44 +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
lichao c505421544 fix: use npx for nest build commands to avoid permission issues 2026-02-25 12:04:54 +00:00
lichao aa62486f21 feat: 完善卡密管理模块,添加生成、激活、查询和撤销卡密功能 2025-12-15 00:07:54 +08:00
lichao 1fe53ab9de feat: 添加swagger文档支持 2025-10-25 17:55:05 +08:00
lichao 49a38f7bce feat: 添加grok支持 2025-03-17 03:04:17 +00:00
lichao caa43298ef feat: 添加jwt相关校验 2025-01-23 16:13:38 +08:00
lichao 3f4a7e4e55 feat: 添加cache缓存 2025-01-23 11:07:48 +08:00
lichao 219afa0353 feat: 添加飞书以及github登录 2025-01-15 15:55:59 +08:00
lichao 946be43558 feat: 添加token相关代码 2025-01-13 19:51:26 +08:00
lichao d2f6d3ebcc feat: 初始化项目 2025-01-08 19:46:50 +08:00