Operational commands
bun run seed
bun run setup-storagesetup-storage idempotently creates or updates the canonical image, video, and file buckets. It requires NEXT_PUBLIC_SUPABASE_URL and SUPABASE_SERVICE_ROLE_KEY.
Deploy migrations through the guarded command:
bun run db:deployIt refuses to run the baseline over an existing untracked schema. For a database that predates Prisma migration tracking, first back it up, apply scripts/adopt-legacy-database.sql with your PostgreSQL client, then record the one-time adoption:
bunx prisma migrate resolve --applied 20260809000000_baseline
bun run db:deployFresh databases can run bun run db:deploy directly. Deployment automation must use this command instead of calling prisma migrate deploy directly.
Source captured: 2026-10-11