Commit Graph

42 Commits

Author SHA1 Message Date
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 444037a50f fix: 使用 Vercel Functions API 配置
- 移除 builds 和 routes 配置
- 使用 functions 配置指定运行时
- 添加 buildCommand 确保构建

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-04 09:41:57 +00:00
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 84007475c3 fix: 修复 express 导入方式
- 使用 ES6 默认导入替代 namespace 导入
- 修复 "express is not a function" 错误

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-04 09:36:16 +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 4c01983b10 chore: 更新 pnpm-lock.yaml
- 添加 express 依赖到 lockfile
- 更新所有依赖版本

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-04 09:32:26 +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 b91a17b071 merge: 合并 GitHub 远程更改并优化 serverless 配置
- 合并本地和远程的 api/index.ts 配置
- 使用 ExpressAdapter 提升 serverless 性能
- 保留全局过滤器和拦截器
- 保留 body-parser 大文件支持
- 统一 CORS 配置

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-04 09:20:54 +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 1de8bae73d feat: add Vercel serverless adapter for NestJS 2026-02-26 03:07:42 +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
lichao 5f50a97549 fix: configure CORS for Vercel frontend domain 2026-02-25 11:53:44 +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 bc8c265cd3 docs: 更新环境变量配置模板
- 添加 GROK_BASE_URL 配置说明

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 14:08:25 +00:00
golc c3284ac01b security: 移除所有硬编码的敏感信息
- 使用环境变量替代硬编码的数据库密码
- 使用环境变量替代硬编码的 API 地址
- 更新 .env.example 添加 GROK_BASE_URL 配置

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 14:03:57 +00:00
golc ddf28ddbf1 security: 保护敏感信息
- 从 git 跟踪中移除 .env 文件
- 更新 .gitignore 忽略所有环境变量文件
- 添加 .env.example 作为配置模板

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 13:58:21 +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
golc be29688c85 fix: 修改 docker-compose 为 docker compose 命令
Backend CI/CD / build (push) Failing after 39s Details
Backend CI/CD / deploy (push) Has been skipped Details
- 适配新版本 Docker Compose CLI
- 确保 CI/CD 能正常执行部署

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 13:33:34 +00:00
golc 7cd5ba6933 feat: 更新 CI/CD 配置为本地部署
Backend CI/CD / build (push) Failing after 44s Details
Backend CI/CD / deploy (push) Has been skipped Details
- 移除 SSH 远程部署方式
- 改为本地直接执行 Docker 命令
- 优化健康检查等待时间
- 添加部署成功后的访问地址提示

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 13:23:58 +00:00
lichao 65a8c53176 feat: 更新 CI/CD 工作流,自动拉取代码并部署
Backend CI/CD / build (push) Failing after 32s Details
Backend CI/CD / deploy (push) Has been skipped Details
- 修改部署路径为 /root/self_proj
- 添加自动 git pull 步骤
- 简化部署流程

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 20:23:00 +08:00
lichao 227a3c5b7b feat: 添加管理员以及部署内容
Backend CI/CD / build (push) Failing after 37s Details
Backend CI/CD / deploy (push) Has been skipped Details
2026-02-24 20:17:59 +08:00
lichao bc77a579c8 feat: 调整提示词 2026-02-24 18:47:50 +08:00
lichao 9366545b49 feat: 添加止损提示词 2026-02-23 16:09:39 +08:00
lichao 4aee7f9ffb feat: 更新调用grok接口 2026-02-23 15:26:13 +08:00
lichao 8cd2cca57a feat: 整理项目结构 2026-02-21 22:50:02 +08:00
lichao aa62486f21 feat: 完善卡密管理模块,添加生成、激活、查询和撤销卡密功能 2025-12-15 00:07:54 +08:00
lichao 7274c58329 feat: 添加任务重新排序功能并增强任务实体属性。 2025-12-02 20:57:09 +08:00
lichao 1fe53ab9de feat: 添加swagger文档支持 2025-10-25 17:55:05 +08:00
lichao 54486e8074 feat: 修改env,使用启动前数据库检查 2025-07-21 12:31:31 +01:00
lichao 8b5d7ed6dc feat: 修复第三方登录的问题 2025-06-04 10:40:40 +01:00
lichao 7d5e734e39 feat: 飞书登录修改public路由 2025-05-30 09:59:53 +01:00
lichao 49a38f7bce feat: 添加grok支持 2025-03-17 03:04:17 +00:00
lichao 0b2ac82f5c feat: 添加deepSeek支持 2025-02-10 17:50:41 +08:00
lichao 1d5c6d2bd5 feat: 添加硅基流动相关接口 2025-02-08 17:52:54 +08: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