Next.js + Swyftstack

PostgreSQL for your Next.js app, ready in minutes.

Managed PostgreSQL and S3 storage, wired into your Next.js app in less time than npm install.

How we fit together

Vercel hosts your app. Swyftstack hosts your data.

Swyftstack isn't a Vercel replacement. Vercel runs your frontend and app code. We run the database your app talks to and the bucket your users upload to. One platform on each side of the wire - and a single DATABASE_URL between them.

Vercel: your frontend + edge

Vercel serves your Next.js pages, runs your server actions and route handlers, and ships your static assets to the edge. It's where your app code lives.

Swyftstack: your data + your files

Managed PostgreSQL 16 on a single DATABASE_URL, plus app object storage on the same dashboard. SSL by default, daily backups, scoped credentials, and a single invoice for both.

PostgreSQL 16 Object storage

When Vercel Postgres / Supabase is the right tool

  • You're 100% on Vercel and want the database in the same dashboard.
  • You want a full BaaS (auth + edge functions + realtime) and you're happy with the trade-offs.
  • You're optimising for the integrated developer experience over invoice clarity.

When Swyftstack is the obvious choice

  • You want real Postgres - not a fork, not a proxy - that any client speaks normally.
  • You'd rather pick your own auth (NextAuth, Clerk, Auth0) and keep the database neutral.
  • You want predictable monthly pricing instead of usage-meter surprises at the end of the month.
  • You also want object storage on the same bill, not as a separate vendor.
Setup

Three steps. The Vercel deploy is the slowest part.

1Deploy a Swyftstack database

One click, 47 seconds. Copy the connection string.

2Add to .env.local

DATABASE_URL="postgresql://user:pass@host:5432/dbname?sslmode=require"

3Pick your data layer

Prisma, Drizzle, or raw pg - your conventions, no special drivers.

4Deploy

Set DATABASE_URL in Vercel/Netlify project env vars. Push. Done.

Code

Three ways to wire it up

Same database, your choice of client.

datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}

generator client {
  provider = "prisma-client-js"
}
Why Next.js teams choose us

What you get on day one

Every Swyftstack plan ships with the database, storage, backups, and observability you'd otherwise stitch together.

Real Postgres, no fork

PostgreSQL 16 straight from postgresql.org. No custom protocol, no proprietary driver. Whatever your ORM expects, just works.

Object storage included

Use Swyftstack's console, signed URLs, scoped credentials, and public object links. Full S3 gateway compatibility is on the roadmap.

47-second provisioning

Click "Create database". Get a connection string with SSL by default. No waiting room, no provisioning queue, no DNS to set up first.

Daily backups, tested restores

Encrypted daily backups with 7- or 30-day retention. Weekly automated restore drills - because untested backups aren't backups.

One bill, one platform

Database, storage, backups, and egress on a single invoice. No three-vendor accounting at the end of the quarter.

No vendor lock-in

Open standards on both ends. pg_dump and S3 export are first-class, even on the free tier. Move on whenever you want.

Frequently asked

Does it work with App Router and Pages Router?

Both. The database client doesn't care about your router; whatever framework you choose for queries works the same in either.

Where should I run my queries - server components, route handlers, server actions?

Any of them. Server components and server actions both run in the Node.js runtime by default, where pg/Prisma/Drizzle work natively.

What about edge runtime?

Use a serverless-friendly driver like @neondatabase/serverless or pg over HTTP. We're a standard Postgres host; whatever the driver supports, we support.

Does it work with NextAuth, Clerk, Auth0?

Yes. We don't ship auth - bring whatever you like. NextAuth's Postgres adapter, Clerk's webhooks, Auth0's user sync - all work normally.

Is this real PostgreSQL or a fork?

Real PostgreSQL 16, straight from postgresql.org. We don't fork or modify the engine. pg_dump, psql, and any standard client work normally.

Where is my data stored?

US or EU - you pick at signup. Encrypted in transit and at rest. Backups are encrypted with separate keys.

Can I move off Swyftstack later?

Yes. PostgreSQL is standard Postgres, and bucket objects can be exported. Take a pg_dump or export your files anytime - we'll even help.

What happens if I outgrow the Starter plan?

Click upgrade. Same database, same connection string, more capacity. No downtime, no migration.

Do I need to manage SSL myself?

No. SSL is on by default, certificates are managed and auto-renewed. Standard rejectUnauthorized: true works out of the box.

Ship the Next.js app you've been prototyping.

Launch offer: Starter at $9/mo for 2 months, then $19/mo.