golc
|
6cb67ead1e
|
fix: 配置 Vercel serverless 部署
核心修改:
- 添加 express 依赖
- 创建 api/index.ts 作为 Vercel serverless 入口
- 从 src/ 导入模块,TypeScript 编译到 dist/
- 排除 api/ 目录不被编译
- 简化 vercel.json 配置
- 更新 pnpm-lock.yaml
- 设置 Node.js 20.x
技术细节:
- Vercel 自动识别 api/ 目录为 serverless 函数
- api/index.ts 映射到 /api 路由
- 使用 ExpressAdapter 和缓存提升性能
- 配置 CORS、全局管道、Swagger 文档
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-03-04 09:58:09 +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 |