Deploy

Deploy Next.js,

without the Vercel bill.

Run your Next.js app on a dedicated server you control, deployed straight from GitHub, with a flat, predictable bill instead of Vercel usage and bandwidth charges. SelfHost auto-detects the build and runs it for you, no server to manage, no surprise invoice.

Deploy from GitHub /SSR or static export /Flat, predictable pricing /From ~$0.02/hr

What you get

Next.js, your way.
On a server you control.

SelfHost detects your Next.js project from GitHub with Nixpacks, runs next build, and serves it (SSR via next start, or a static export) on a dedicated server. You get the deploy-from-GitHub experience with auto-deploy and PR previews, but on infrastructure you can see, billed at a flat hourly rate rather than per-request and per-GB.

Nixpacks (auto-detected), or your own Dockerfile

Deploy in 5 steps

From zero to live.
No server to set up.

The push-to-deploy flow you expect, on a server you own and a bill you can predict.

1

Create a Project

Give it a name and SelfHost provisions a dedicated server for you in a couple of minutes.

2

Add your GitHub repo

Connect the GitHub App or paste a public repo URL and pick a branch. SelfHost auto-detects Next.js and runs next build.

3

Set your environment variables

Add your NEXT_PUBLIC_ keys, API URLs, and secrets, or paste a .env to import them in bulk.

4

Point your domain

Use the default wildcard subdomain on selfhost.dev, or add your own: set the DNS records, verify, and HTTPS goes live automatically.

5

Deploy

SelfHost serves your app (SSR or static) with live logs and health checks. Every push redeploys, with PR preview environments and one-click rollback.

Environment variables

Configure it
in minutes.

Set build-time and runtime variables per service, paste a .env to import in bulk:

Paste a .env to import in bulk, or set keys one by one. Values are wired into every build and deploy.

Key variables

NEXT_PUBLIC_* Public variables baked into the client build.
PORT The port next start binds to, mapped to your domain.
DATABASE_URL Connection string if you add a database to the project.
.env import Paste a .env to load all variables at once.

What you get

Next.js, the easy way.
On a server you control.

SSR or static

Server-rendered Next.js via next start, or a static export, both deploy from your repo.

A predictable bill

A flat hourly rate per server instead of Vercel per-request, per-function, and per-GB egress charges.

A server you control

Dedicated compute with live metrics and full logs, your app and its data on infrastructure you own.

Auto-deploy + PR previews

Every push ships automatically, with isolated preview deployments for pull requests and one-click rollback.

Custom domain + SSL

Add a domain, verify DNS, and HTTPS is provisioned and renewed for you.

A database beside it

Add a one-click PostgreSQL, Redis, MySQL, or MongoDB to the same project.

Which one

Why move off Vercel

Vercel is excellent for getting started, but its usage-based pricing means a busy month can cost several times a quiet one. On SelfHost, a Next.js app runs on a flat hourly server rate, so the bill stays the same whether traffic doubles or flatlines.

Frequently Asked Questions

Can I deploy Next.js without Vercel?
Yes. SelfHost runs your Next.js app on a dedicated server you control, deployed from GitHub with auto-deploy on push. You get the push-to-deploy experience without Vercel usage pricing.
Does SelfHost support server-side rendering?
Yes. SelfHost runs next build and serves your app with next start for full SSR, or serves a static export if that is how your app is configured.
How does the cost compare to Vercel?
SelfHost bills a flat hourly rate per server instead of Vercel per-request, per-function, and per-GB bandwidth charges. That keeps the bill predictable when traffic spikes. See Bill Variance.
How much does it cost to host Next.js?
Pay-as-you-go by the hour against prepaid credits. A project server starts around $0.02/hr (about $0.50 a day) with no tiers. Pause it and you pay nothing. See pricing.
Can I add a database to my Next.js app?
Yes. Add a one-click PostgreSQL, Redis, MySQL, or MongoDB to the same project, or connect a dedicated managed PostgreSQL instance.

Deploy Next.js. Without the Vercel bill.

SSR or static, from GitHub
Flat, predictable pricing
From ~$0.02/hr, pay-as-you-go
Deploy Next.js