All templates
Node.js 22

Next.js + Postgres starter

Sign the guestbook and your entry appears at once: Next.js 15 with the App Router, React 19 and TypeScript, a Server Action for the write, and managed Postgres behind it. It builds without a database, connects over velixir's TLS the way node-postgres needs, and shows a setup page instead of crashing when no database is bound. Deploying it creates a managed Postgres and connects it for you.

Next.js Managed Postgres Server Actions

One click creates the app and connects what it needs

  • A managed Postgres, bound as DATABASE_URL (Starter, €4.95/month)

The first deploy waits until it is ready, so the app starts connected. You can untick it before creating the app.

Deploy this template You will sign in first. We keep your pick.

The source

This template is an ordinary public repository. Read it, fork it, or open a pull request against it. Deploying pulls its default branch and builds it the same way velixir builds your own code.

velixirnet/template-nextjs-postgres

Once it is live

The template is just a starting point. Clone it, edit it, then ship over the top with the CLI:

velixir deploy

Or add the GitHub Actions workflow from the app's Deploys tab to your repo, and every push to your deploy branch ships a release. Both run the same pipeline this template just went through.