Point OpenCut to a Remote Postgres
Managed Postgres services (Supabase, Railway, Neon, RDS) work once the connection string is updated.
Example configuration
DATABASE_URL="postgresql://user:password@db.example.com:5432/opencut?sslmode=require"
POOL_MIN=1
POOL_MAX=10Reload the Next.js server so the new variables apply.
Apply migrations
cd apps/web
bun run db:migrateDrizzle will create tables remotely. Verify with psql:
psql "$DATABASE_URL" -c '\dt'Recommended flags
- Add
statement_timeout=60000if exports run long. - Use connection pooling (pgBouncer) to stay within limits.
- Store credentials in your platform secret manager instead of
.env.localwhen deploying.
Diagram
flowchart LR
A[OpenCut Next.js] -->|Prisma client| B[pgBouncer]
B --> C[Managed Postgres]
Monitor connection counts in your provider dashboard to ensure the editor does not exhaust limits.