docs & cleanup: update stack info, remove dead code, fix backend bugs
- Fix AGENTS.md and 技术架构设计.md to reflect actual stack (Prisma+MySQL, static export, PM2) - Remove 4 unused frontend components (page-transition, page-layout, image-upload, section-card) - Fix card.tsx hardcoded colors → CSS variables - Remove provider name from model selector, remove sensenova-u1-fast from models - Fix analytics.controller.ts raw SQL table names (runtime bug) - Add JWT auth guard to tools POST endpoint - Fix AI gateway test: update env vars and model names - Fix admin test: mock role structure for Prisma relation
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
## 项目概览
|
||||
|
||||
宇之然 AI 学习与实践平台。前端 Next.js + shadcn/ui,后端 NestJS + PostgreSQL。
|
||||
宇之然 AI 学习与实践平台。前端 Next.js + shadcn/ui,后端 NestJS + MySQL。
|
||||
|
||||
| 项目 | 值 |
|
||||
|------|-----|
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
### 后端
|
||||
- **框架**: NestJS 模块化架构
|
||||
- **ORM**: TypeORM + PostgreSQL(schema 在 `database/migrations/`)
|
||||
- **ORM**: Prisma + MySQL(schema 在 `prisma/schema.prisma`)
|
||||
- **认证**: JWT + Passport
|
||||
- **API 前缀**: `/api/v1`
|
||||
- **CORS**: `origin: true`, `maxAge: 0`(避免浏览器预检缓存)
|
||||
@@ -82,7 +82,7 @@
|
||||
- `users.service.ts` 的 `if (status)` 曾误写为 `if (params.status)`(已修复)
|
||||
- 静态构建 (`next build`) 已修复 —— 所有动态路由都通过 server wrapper 模式导出 `generateStaticParams()`(60 页面全部生成)
|
||||
- `public/favicon.ico` 和 `app/favicon.ico` 不能共存,会触发 500
|
||||
- 数据库 schema 通过 TypeORM migration 管理, 位于 `backend/src/database/migrations/`
|
||||
- 数据库 schema 通过 Prisma migration 管理, 位于 `backend/prisma/migrations/`
|
||||
|
||||
## 项目管理流程
|
||||
|
||||
|
||||
Reference in New Issue
Block a user