Create a Neon project, copy the pooled connection string, connect your app or ORM, and understand scale to zero and branches.
Create a Neon Postgres database and connect it to my Next.js app
How it works
- Create a Neon project: Vovy opens console.neon.tech, creates a project, and picks the region nearest your app's hosting. You sign in yourself.
- Copy the pooled connection string: A connection string is the full address and password for your database. Vovy copies the pooled one, which handles many short connections from serverless apps.
- Add it to your app: Vovy puts it in .env as DATABASE_URL and in Vercel's environment variables, never in code.
- Create your first table: Vovy creates a table with your ORM, like Drizzle or Prisma, or in Neon's SQL Editor, and inserts a test row.
- Explain branches and idling: A card explains that the database sleeps when idle to save money, so the first query can be slower, and branches let you copy the database for testing.
What you provide
- A Neon account
- Your app's code
What you get
- A Postgres database on Neon
- Connection string set in dev and production
- A test table
- Branches and idling explained
FAQ
Is Neon free?
Neon has a free plan with limited storage and compute hours, enough for small apps. Paid plans bill by usage.
Why is my first query slow?
On the free plan, the database suspends after about 5 minutes idle and takes a moment to wake up.
Neon or Supabase?
Neon is just Postgres. Supabase adds auth, storage and APIs on top. Neon fits when you already have those elsewhere.
Related tasks
All tasks