- Add start.sh that runs prisma db push before starting the server, creating tables automatically on first deploy - Copy prisma CLI + engines into production image for runtime migrations - Add configurable storage cleanup: source PDF retention (default 30d) and image retention (default 180d) with manual trigger in Settings - Add /api/cleanup endpoint (GET for status, POST to run) - Add retention settings to AppSettings schema - Add ListObjectsV2 helper to minio.ts for bulk cleanup Tested: local Docker build passes Made-with: Cursor
55 lines
1.4 KiB
JSON
55 lines
1.4 KiB
JSON
{
|
|
"name": "echos-ocr",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "npx prisma generate && next build",
|
|
"start": "next start",
|
|
"lint": "eslint",
|
|
"db:migrate": "npx prisma migrate dev",
|
|
"db:push": "npx prisma db push",
|
|
"db:studio": "npx prisma studio",
|
|
"postinstall": "npx prisma generate"
|
|
},
|
|
"dependencies": {
|
|
"@aws-sdk/client-s3": "^3.1005.0",
|
|
"@aws-sdk/s3-request-presigner": "^3.1005.0",
|
|
"@base-ui/react": "^1.2.0",
|
|
"@prisma/adapter-pg": "^7.4.2",
|
|
"@prisma/client": "^7.4.2",
|
|
"@tanstack/react-table": "^8.21.3",
|
|
"chokidar": "^5.0.0",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"cmdk": "^1.1.1",
|
|
"date-fns": "^4.1.0",
|
|
"dotenv": "^17.3.1",
|
|
"lucide-react": "^0.577.0",
|
|
"minio": "^8.0.7",
|
|
"next": "16.1.6",
|
|
"next-themes": "^0.4.6",
|
|
"pdf2pic": "^3.2.0",
|
|
"pg": "^8.20.0",
|
|
"prisma": "^7.4.2",
|
|
"react": "19.2.3",
|
|
"react-dom": "19.2.3",
|
|
"shadcn": "^4.0.2",
|
|
"sharp": "^0.34.5",
|
|
"sonner": "^2.0.7",
|
|
"tailwind-merge": "^3.5.0",
|
|
"tw-animate-css": "^1.4.0",
|
|
"zod": "^4.3.6"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/postcss": "^4",
|
|
"@types/node": "^20",
|
|
"@types/pg": "^8.18.0",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"eslint": "^9",
|
|
"eslint-config-next": "16.1.6",
|
|
"tailwindcss": "^4",
|
|
"typescript": "^5"
|
|
}
|
|
}
|