feat: 添加数据库迁移脚本和 Supabase 工具配置

添加迁移脚本以支持数据库版本管理,配置 pnpm workspace 仅构建 supabase 依赖
新增用户登录字段和任务帮助请求功能,禁用 tasks 和 task_steps 表的 RLS
更新环境变量示例以支持自托管 Supabase 实例
This commit is contained in:
2026-01-29 02:41:10 +08:00
parent 2397ed46eb
commit 095f02700f
11 changed files with 362 additions and 4 deletions

View File

@@ -7,6 +7,7 @@
"build": "next build",
"start": "next start",
"lint": "next lint",
"migrate": "node scripts/migrate.js",
"typecheck": "tsc --noEmit"
},
"dependencies": {
@@ -70,5 +71,9 @@
"typescript": "5.2.2",
"vaul": "^0.9.9",
"zod": "^3.23.8"
},
"devDependencies": {
"dotenv": "^17.2.3",
"supabase": "^2.72.9"
}
}