Production guidelines for Next.js App Router, Drizzle ORM with postgres-js, Supabase Transaction Pooler (prepare: false), and RLS security.
Standardized production guidelines for Next.js 15 App Router, Drizzle ORM, and Supabase PostgreSQL.
Utilized by modern high-velocity platforms like Supabase Studio, Dub.co, and CopilotKit.
prepare: false to prevent statement naming collisions across ephemeral Lambda invocations.Yes — AGENTS.md is the open, cross-tool standard read by Cursor, Claude Code, Windsurf, and 30+ other agents. A dedicated .mdc file is also included for Cursor's native .cursor/rules format.
PgBouncer's transaction pooling mode reassigns the underlying Postgres connection after every transaction, but prepared statements are tied to a specific connection. When postgres-js tries to reuse a prepared statement name on a connection that doesn't have it, Postgres throws a 'prepared statement already exists' or 'does not exist' error — disabling prepared statements avoids the mismatch entirely.
Next.js hot module reloading in development re-executes module-level code on every file save, which would otherwise open a fresh Postgres connection each time and quickly exhaust the connection pool. Caching the client on globalThis in development ensures the same connection is reused across HMR reloads.
Production guidelines for Django 5 enterprise applications, PostgreSQL connection pooling, Redis caching, and Celery async workers.
Production guidelines for FastAPI, Pydantic v2 validation, Async SQLAlchemy 2.0 (asyncpg), Alembic migrations, and PostgreSQL/Redis.
Production guidelines for Laravel 11 monoliths, Livewire reactive components, Eloquent ORM query discipline, and queued job workers.
Enterprise backend architecture guidelines for NestJS modular design, PostgreSQL connection pooling, Redis BullMQ background jobs, and DTO validation.