# Neon solution docs

- [A Neon branch per preview deployment](https://agenticboilerplate.com/cookbook/neon/branch-per-preview-deployment): Preview deploys that share the production database corrupt it or lie to you. Give every preview its own copy-on-write Neon branch, wired to the deployment's environment variables.
- [Neon cold starts, where the half second goes and what to do about it](https://agenticboilerplate.com/cookbook/neon/cold-start-latency): Scale-to-zero means an idle branch takes roughly 500 ms to wake, and a serverless function adds its own cold start on top. How to measure the parts and fix the ones that matter.
- [Connection exhaustion on serverless Postgres, and how to actually fix it](https://agenticboilerplate.com/cookbook/neon/connection-exhaustion-in-serverless): Serverless does not queue requests on a pool, it creates pools. Here is the arithmetic, the four real causes, and the fix for each.
- [Local Postgres with the Neon serverless driver, no Neon account](https://agenticboilerplate.com/cookbook/neon/local-postgres-without-a-neon-account): The Neon driver speaks HTTPS and WebSocket, not the Postgres wire protocol. A small local proxy plus two neonConfig settings let it run against a Postgres on your laptop, with no code fork.
- [Running migrations on Vercel without a half-applied schema](https://agenticboilerplate.com/cookbook/neon/migrations-on-vercel): Vercel has no migration step, so people add one in the wrong place. Where migrations belong in the build, why the direct URL is mandatory, and how to deploy a breaking change in two safe halves.
- [Neon's pooled and unpooled connection strings, and which one to use where](https://agenticboilerplate.com/cookbook/neon/pooled-vs-unpooled-connections): The -pooler host and the direct host are not interchangeable. Runtime queries need the pooler; migrations, advisory locks and session state need the direct endpoint.

---

Agentic Boilerplate: A Next.js repo your agent already knows. Free during launch, then $99 once.

- Site map for agents: https://agenticboilerplate.com/llms.txt
- Public API: https://agenticboilerplate.com/openapi.json
- Contact: agenticstudio@gmail.com
