fix: provide dummy DATABASE_URL for prisma generate during deploy
CI / check (push) Successful in 29s
Deploy / release (push) Skipped
Deploy / deploy (push) Failing after 2m8s
CI / deploy (push) Failing after 10s

This commit is contained in:
openhands committed 2026-07-30 20:07:49 +02:00
1 parent d805e54053
commit 525f58cd24
1 file changed
+2
+2
View File
@@ -28,6 +28,7 @@ jobs:
export NODE_ENV=production
export SKIP_ENV_VALIDATION=1
pnpm install --frozen-lockfile
export DATABASE_URL="mysql://placeholder:please@localhost/placeholder"
pnpm prisma:generate
pnpm build
pm2 restart next --update-env
@@ -335,6 +336,7 @@ jobs:
echo "STAGE DATABASE_POOL_SIZE=${DATABASE_POOL_SIZE}"
pnpm install --frozen-lockfile
export DATABASE_URL="${DEPLOY_DATABASE_URL:-mysql://placeholder:please@localhost/placeholder}"
# prisma generate does not need a live DB connection.
pnpm prisma:generate
export BCRYPT_ROUNDS=4