Fix production deploy: sync lockfile, Prisma engines, and build.
The Docker build failed because pnpm-lock.yaml was stale after removing Sanity and adding Prisma/admin deps. Bundle debian-openssl-3.0.x engines for node:20-slim, fix invalid tiptap package, and avoid DB access during next build. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
14
scripts/fetch-prisma-binaries.sh
Normal file
14
scripts/fetch-prisma-binaries.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
# Download Prisma engines for node:20-slim (debian-openssl-3.0.x). Run on a machine with internet.
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
pnpm install --registry https://registry.npmjs.org
|
||||
PRISMA_CLI_BINARY_TARGETS=debian-openssl-3.0.x pnpm exec prisma generate
|
||||
|
||||
ENGINES="$(find node_modules -path '*/@prisma/engines' -type d | head -1)"
|
||||
mkdir -p prisma-binaries
|
||||
cp "$ENGINES/libquery_engine-debian-openssl-3.0.x.so.node" prisma-binaries/
|
||||
cp "$ENGINES/schema-engine-debian-openssl-3.0.x" prisma-binaries/
|
||||
chmod +x prisma-binaries/schema-engine-debian-openssl-3.0.x
|
||||
ls -lh prisma-binaries/
|
||||
Reference in New Issue
Block a user