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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user