- Add PostgreSQL service to docker-compose with health checks
- Add migrate service that runs prisma migrate deploy on startup
- Integrate Prisma client in worker: checks for existing generations
(same repo+commit) before regenerating, writes to Postgres on completion
- Update /api/docs/[id] with Redis → PostgreSQL fallback + cache repopulation
- Update Dockerfile: prisma generate in build, copy Prisma engine to worker/web
- Add @codeboard/database dependency to web and worker packages
- Add initial SQL migration for Generation and User tables
- Change removeOnComplete to { age: 3600 } for job retention
27 lines
573 B
JSON
27 lines
573 B
JSON
{
|
|
"name": "@codeboard/worker",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"clean": "rm -rf dist",
|
|
"dev": "tsx watch src/index.ts",
|
|
"start": "node dist/index.js"
|
|
},
|
|
"dependencies": {
|
|
"@codeboard/shared": "*",
|
|
"@codeboard/parser": "*",
|
|
"@codeboard/llm": "*",
|
|
"@codeboard/diagrams": "*",
|
|
"@codeboard/database": "*",
|
|
"bullmq": "^5.34.0",
|
|
"ioredis": "^5.4.0",
|
|
"simple-git": "^3.27.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.0.0",
|
|
"tsx": "^4.19.0",
|
|
"typescript": "^5.7"
|
|
}
|
|
}
|