build: invoke prisma directly to avoid .bin symlink deref
All checks were successful
Build and deploy / build-deploy (push) Successful in 1m13s

This commit is contained in:
Ola
2026-05-22 21:41:41 +02:00
parent 7b0f4bfc73
commit 2cb79862a4

View File

@@ -4,8 +4,10 @@ set -e
# Sync schema to the mounted SQLite volume. `db push` is fine for a single-tenant # Sync schema to the mounted SQLite volume. `db push` is fine for a single-tenant
# MVP where we don't need an audit trail of migrations. Switch to `migrate deploy` # MVP where we don't need an audit trail of migrations. Switch to `migrate deploy`
# once the schema stabilizes and we want versioned migrations. # once the schema stabilizes and we want versioned migrations.
# Invoke prisma directly via the package — .bin/prisma symlink gets dereferenced
# by Docker COPY which breaks the relative wasm resolution it relies on.
echo "→ Running prisma db push" echo "→ Running prisma db push"
npx prisma db push --skip-generate --accept-data-loss=false node ./node_modules/prisma/build/index.js db push --skip-generate --accept-data-loss=false
# Optionally seed when explicitly requested. Idempotent (upsert). # Optionally seed when explicitly requested. Idempotent (upsert).
if [ "${RUN_SEED:-false}" = "true" ]; then if [ "${RUN_SEED:-false}" = "true" ]; then