Ship prebuilt Prisma client so the server never runs prisma generate

prisma generate needs over three minutes on the production host, which made
every deploy hang on that build step. The client is now generated on the dev
machine into prisma-client.tar.gz (tracked, 8.5MB) and the image just untars
it. Dropping the unused linux-musl engine target halves that payload.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-08 16:35:06 +03:30
co-authored by Cursor
parent aa9b3ee451
commit d5dfd6a0f0
7 changed files with 49 additions and 12 deletions
+1
View File
@@ -12,6 +12,7 @@
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
"start:prod": "node dist/main.js",
"deploy:build": "npm run build && bash scripts/pack-prisma-client.sh",
"build:deploy": "bash scripts/build-local-dist.sh",
"docker:dist": "docker compose -f docker-compose.dist.yml up -d --build",
"test": "jest",