hosting · 6 min read

Next.js Hosting: The Cheapest Ways to Host a Next.js App (2026)

Four ways to host a Next.js app for $0 to a few dollars a month: static export, Vercel Hobby, Cloudflare Workers and a small VPS with Docker, with what each one costs and what you give up.

Published

Reading time

6 min

Written by

KavioWeb

Cover: the cheapest way to host a Next.js app in 2026

Some links go through /go/ and may earn us a commission at no extra cost to you. We only recommend tools we would use.

The cheapest Next.js hosting is a static export on Cloudflare if your app does not need server features: it costs $0, and static asset requests on Cloudflare Workers are free and unlimited. If you need server-side rendering, API routes or middleware, the cheapest options are Vercel's Hobby plan ($0), Cloudflare Workers (free up to 100,000 requests a day, then $5 a month), or a small VPS running Next.js in Docker for a fixed €5-6 a month. Which is cheapest for you depends on traffic and which Next.js features you use. Prices checked November 2026.

Diagram: Next.js hosting options from cheapest with fewest features to fixed-cost with all features

The four options at a glance

Option

Monthly cost (Nov 2026)

Next.js features

Effort

Static export on Cloudflare

$0

Limited: no server rendering, API routes or middleware

Low

Vercel Hobby

$0 (Pro $20 per seat)

All

Lowest

Cloudflare Workers (vinext)

$0 up to 100K requests/day; Paid from $5

Most, test before switching

Medium

VPS + Docker (Hetzner, DigitalOcean)

from €5.49 excl. VAT (Hetzner) or $6 for 1 GiB (DigitalOcean)

All (Node.js server)

Higher

The Next.js docs list four ways to deploy: a Node.js server, a Docker container, a static export, or a platform adapter. The Node.js server and Docker routes support all Next.js features; static export is limited; adapters vary.

Option 1: Static export ($0)

If your app is a marketing site, docs, a portfolio or a client-side app that talks to an external API or Supabase, you may not need a server at all. Set output: 'export' in next.config.js, run next build, and you get an out folder of plain HTML, CSS and JS.

Host that folder on Cloudflare: Cloudflare's pricing docs say requests to static assets are free and unlimited. Netlify and Vercel also host static sites on their free plans.

You give up: server-side rendering on request, API routes, middleware, image optimisation on the fly and anything else that needs a running server.

Host on Cloudflare

Option 2: Vercel Hobby ($0)

Vercel builds Next.js, so every feature works without configuration. Hobby is $0; Pro is $20 per developer seat per month and includes $20 of usage credit, as of November 2026.

Best for: side projects and prototypes where your time is worth more than the bill. Connect the repo and you are live.

Watch out for: usage-based charges beyond the included amounts once you move to Pro, and check Vercel's plan terms for what Hobby allows.

Deploy on Vercel

Option 3: Cloudflare Workers ($0 to $5)

Cloudflare's docs recommend vinext as the default way to run Next.js on Workers, with vinext init for an existing app and a migration guide from Vercel.

Pricing (November 2026): Workers Free includes 100,000 requests a day. Workers Paid starts at $5 a month per account and includes 10 million requests and 30 million CPU milliseconds a month, then $0.30 per extra million requests. Static asset requests are free, and there is no bandwidth charge.

Best for: apps that expect real traffic and want a low, predictable bill.

Watch out for: the Workers runtime is not a full Node.js server. Test any dependency that relies on native modules or the file system, and test features like image optimisation after moving.

Try Cloudflare Workers

Option 4: A small VPS with Docker (fixed cost)

A VPS gives you a fixed monthly price, all Next.js features and room for a database and background jobs on the same machine. As of November 2026, Hetzner's shared plans start at €5.49 a month excluding VAT, and DigitalOcean's 1 GiB Droplet is $6 a month.

Diagram: running a standalone Next.js build on a VPS behind Caddy

The efficient way to run it:

  1. In next.config.js, set output: 'standalone'. next build then creates .next/standalone with a minimal server.js and only the node_modules it needs.

  2. The standalone server does not copy public or .next/static by default. Copy them in your Dockerfile:

     cp -r public .next/standalone/ && cp -r .next/static .next/standalone/.next/ 
  3. Run node server.js in a small Node image, behind Caddy or Traefik for automatic HTTPS.

  4. Point your domain's A record at the server.

Best for: steady traffic, apps with their own Postgres or workers, or anyone who wants to stop thinking about usage-based bills.

Watch out for: you are now the ops team: updates, backups, monitoring. A tool like Coolify can handle deploys for you on the same VPS. For picking a provider, see best VPS for vibe coders.

See Hetzner Cloud

How to choose Next.js hosting

  • No server features needed: static export on Cloudflare. $0, fast, done.

  • Prototype or side project, want zero setup: Vercel Hobby.

  • Growing traffic, want low cost: Cloudflare Workers.

  • Steady traffic plus a database or workers: a 2 GB VPS.

The cheapest option on paper can become the most expensive if a viral day hits a usage-based plan with no spend limit. Whatever you choose, set billing alerts. For a broader platform comparison, see Vercel vs Netlify vs Cloudflare Pages.

FAQ

Can I host a Next.js app for free?

Yes. A static export on Cloudflare, Netlify or Vercel is free, and Vercel's Hobby plan runs full Next.js apps at $0. Cloudflare Workers Free covers 100,000 requests a day as of November 2026.

Is a VPS cheaper than Vercel for Next.js?

At low traffic, Vercel Hobby at $0 is cheaper. For a business app on Vercel Pro ($20 per seat) with usage on top, a €5-6 VPS can be much cheaper, at the cost of managing the server yourself.

What does output standalone do in Next.js?

It makes next build produce a self-contained folder with a minimal server.js and only the dependencies the app needs, which keeps Docker images small. You copy public and .next/static into it, or serve them from a CDN.

Does Next.js work on Cloudflare?

Yes. Cloudflare recommends vinext for running Next.js on Workers and documents a migration path from Vercel. Test your app's specific features after moving.

Which Next.js features need a server?

Server-side rendering on request, API routes and route handlers, middleware, server actions and on-demand image optimisation. If you use any of these, a plain static export will not work.

Want it deployed for you?

Kavio sets up Next.js hosting that fits your budget: Vercel, Cloudflare or a hardened VPS with Docker, HTTPS, backups and monitoring. See our services or contact us.

Sources

  1. Next.js: Deploying
  2. Next.js: output standalone
  3. Cloudflare Workers pricing
  4. Cloudflare: Next.js on Workers
  5. Vercel pricing
  6. Hetzner Cloud plans
  7. DigitalOcean Droplet pricing

Next article

All articles →
Cover: how to connect a custom domain to Vercel, Netlify or Cloudflare

domains · 6 min read

Vercel Custom Domain Setup (Plus Netlify and Cloudflare)

Step-by-step DNS setup for putting your own domain on a Vercel, Netlify or Cloudflare Workers app: apex vs www, the exact records each platform asks for, HTTPS, and fixes for the usual errors.

Read next ↗