- 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
36 lines
956 B
JSON
36 lines
956 B
JSON
{
|
|
"name": "@codeboard/web",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"lint": "next lint",
|
|
"db:generate": "prisma generate --schema=../../packages/database/prisma/schema.prisma",
|
|
"db:push": "prisma db push --schema=../../packages/database/prisma/schema.prisma"
|
|
},
|
|
"dependencies": {
|
|
"@codeboard/shared": "*",
|
|
"@codeboard/database": "*",
|
|
"@tailwindcss/typography": "^0.5.19",
|
|
"bullmq": "^5.34.0",
|
|
"ioredis": "^5.4.0",
|
|
"lucide-react": "^0.563.0",
|
|
"mermaid": "^11.4.0",
|
|
"next": "^14.2.0",
|
|
"react": "^18.3.0",
|
|
"react-dom": "^18.3.0",
|
|
"react-markdown": "^9.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/postcss": "^4.0.0",
|
|
"@types/node": "^20.0.0",
|
|
"@types/react": "^18.3.0",
|
|
"@types/react-dom": "^18.3.0",
|
|
"postcss": "^8.5.0",
|
|
"tailwindcss": "^4.0.0",
|
|
"typescript": "^5.7"
|
|
}
|
|
}
|