Deploy Next.js Without Vercel: 4 Options (2026)

Deploy Next.js without Vercel: Temps, Railway, Docker on a VPS or Cloudflare Workers, with deploy commands, 2026 pricing and honest trade-offs for each.

David Viejo
David Viejo · Updated · Published

How do you deploy a Next.js app without Vercel? Use one of four alternatives — Temps, Railway, Docker on a VPS, or Cloudflare Workers — all of which run standard Next.js apps without code changes for most projects. The closest match to Vercel's git push workflow is Temps: an open-source, self-hosted PaaS that gives you git-push deploys and preview URLs on your own server, with analytics, error tracking and uptime monitoring built in. Vercel itself offers zero-config deploys and charges $20/month per deploying seat on Pro. Cloudflare is the cheapest option for static sites. One developer was billed $46,485 after a traffic spike on a static Vercel site — not typical, but a reminder to understand usage-based pricing before you deploy.

This guide covers Vercel and the four alternatives with actual commands, current pricing and honest trade-offs — including how to move off Vercel without touching your application code.

Disclosure: Temps publishes this blog, so treat our section as a vendor describing its own product. We describe the other platforms from their own documentation and pricing pages, and say where they are the better choice.

TL;DR: A 5-developer team on Vercel Pro pays $100/month in deploying seats before usage; add Sentry Team ($26) and Plausible ($9) and the stack costs $135/month. Temps is free to self-host — you pay only for the server (a Hetzner CX23 is €5.49/month ex VAT). Cloudflare Workers is the cheapest option for static sites ($0–5/month).

Next.js Deployment Platforms Comparison 2026

Prices verified on on each vendor's pricing page.

PlatformNext.js SupportGit-push deployFree tierSelf-hostableAnalytics built-inPricing model
VercelFirst-classYesYes (Hobby, non-commercial)NoAdd-on (usage-billed on Pro)Pro $20/mo incl. 1 deploying seat; +$20 per extra deploying seat
TempsFull (next start)YesYes (free to self-host)YesYes (add the SDK)Free to self-host; Premium $399/org/mo; Cloud $29/mo (invite-only beta)
RailwayFullYesFree plan ($1/mo credit)NoNoHobby $5/mo; Pro $20/mo per workspace (unlimited seats) + usage
Docker + VPSFullManual CI/CDNoYesNoServer cost only (e.g. Hetzner CX23 €5.49/mo ex VAT)
Cloudflare WorkersFull SSR via vinext (or OpenNext)YesYesNoNoFree + Workers Paid $5/mo

Vercel and Cloudflare focus on compute and edge delivery — observability comes from separate tools such as Sentry, Plausible or FullStory. Temps bundles analytics, error tracking, session replay and uptime monitoring into the platform itself, and delivers git-push deployments with automatic SSL through its Pingora reverse proxy (the proxy engine Cloudflare open-sourced) on servers you own.


How Does Vercel Handle Next.js Deployment?

Vercel created Next.js, which makes it the most tightly integrated option available. Zero-configuration deployments work immediately — connect your repo, push code, and your site goes live. According to Vercel's pricing page, Pro costs $20/month, which includes one deploying seat and $20 of usage credit; each additional deploying seat is $20/month, and viewer seats are free. For solo developers, that's reasonable. For teams, it adds up.

Deploy to Vercel

npm i -g vercel
vercel

Two commands. Your app is live with HTTPS, preview deployments and instant rollbacks.

Vercel Pricing Reality

PlanWhat you pay
HobbyFree, for personal non-commercial projects
Pro$20/mo incl. 1 deploying seat and $20 usage credit; +$20/mo per extra deploying seat; 1 TB of data transfer and 1M CDN requests included on Flat Rate CDN (the default for new Pro teams; higher tiers from $20/mo), or on-demand from $0.15/GB
EnterpriseCustom pricing

The free tier works well for personal projects and prototypes. Once you're on Pro, costs grow with the team: five developers pay $100/month in seat fees alone — before usage beyond the included credit.

Best For

  • Rapid prototyping where deployment speed matters most
  • Marketing sites with predictable, moderate traffic
  • Teams already invested in Vercel's ecosystem

Watch Out For

  • Per-seat pricing: $20 per deploying seat per month compounds with growing teams
  • CDN capacity: past 1 TB or 1M CDN requests, new Pro teams move to a paid Flat Rate CDN tier (from $20/mo); older teams on on-demand pricing pay from $0.15/GB past 1 TB
  • Vercel-specific services: Next.js features such as middleware, image optimization and ISR run on any Node.js server under next start, but Vercel services like Blob, Edge Config and vercel.json cron jobs need replacements when you leave

For a line-by-line breakdown of the bill, see Vercel pricing: the complete guide, and for a head-to-head with Temps, see Temps vs Vercel.


Temps: Vercel-Style Git-Push Deploys on Your Own Server

Temps delivers Vercel-style git push deployments on your own servers, with analytics, error tracking and monitoring included at no extra cost. It is dual-licensed MIT / Apache 2.0 and free to self-host — no per-seat fees and no bandwidth overage charges, just the server you already pay for. Temps Cloud, a hosted control plane for your own servers, is $29/month in an invite-only beta.

Temps detects Next.js from your next.config.* file, builds it on a Node.js 22 image and runs it with next start, so you don't need output: "standalone". The step-by-step walkthrough lives on Deploy Next.js to your own server, and the full reference is in the Next.js docs.

Deploy to Temps

# Connect your GitHub repo in the Temps dashboard
# Configure environment variables
# Push to deploy

# Or use the CLI
bunx @temps-sdk/cli deploy

What It Costs

Temps itself costs nothing to self-host. Your cost is the server: a Hetzner CX23 (2 vCPU, 4 GB RAM) is €5.49/month excluding VAT as of October 2026, and larger apps need a bigger server or a second node. No per-seat fees, no bandwidth overages. For a full cost model by team size and traffic, use the Next.js hosting cost calculator.

What's Included Without Extra Cost

  • Web analytics (first-party cookies on your own domain) once you add the Temps SDK or script tag
  • Error tracking with a Sentry-compatible DSN — point the official Sentry SDK at Temps, no code rewrite
  • Session replay (off by default; inputs are masked)
  • Uptime monitoring
  • Managed databases, and transactional email through SES, Scaleway or an SMTP relay
  • Custom domains with automatic SSL via the Pingora reverse proxy
  • Zero-downtime deployments: health checks must pass before traffic switches

On Vercel, the equivalent for a five-developer team — Pro seats plus Sentry Team and Plausible — is $135/month before usage. With Temps the software is free and the server is the bill.

Self-hosting is not for everyone. If your team has no operations experience and your app is a non-commercial project under Vercel's Hobby limits, Vercel's free tier is the pragmatic choice. Self-hosting pays off as seat counts and add-ons grow.

Migration from Vercel

# No code changes required for standard Next.js apps
# 1. Export env vars from Vercel
# 2. Import to Temps
# 3. Update DNS
# 4. Deploy

The Migrate from Vercel guide covers each step, including replacing Vercel-specific storage.

Adding Analytics and Session Replay to Your Next.js App

When deploying on Temps, the @temps-sdk/react-analytics package sends data to your own Temps instance (see the analytics docs):

"use client";
import { TempsAnalyticsProvider, useTempsAnalytics } from "@temps-sdk/react-analytics";

// In your root layout
export function Analytics({ children }: { children: React.ReactNode }) {
  return (
    <TempsAnalyticsProvider
      basePath="/api/_temps"
      enableSessionRecording={true}
    >
      {children}
    </TempsAnalyticsProvider>
  );
}

// In any client component
export function TrackButton() {
  const { trackEvent } = useTempsAnalytics();

  return (
    <button onClick={() => trackEvent("cta_click", { label: "deploy" })}>
      Deploy Now
    </button>
  );
}

All analytics data stays on your server, with first-party cookies on your own domain. For errors, point your existing Sentry SDK at the DSN Temps gives you (error tracking docs).


Is Railway Good for Full-Stack Next.js Apps?

Railway charges by usage, which makes it one of the more transparent usage-based platforms. It works well when your Next.js app needs a database, Redis or background workers alongside the frontend. Everything deploys from a single dashboard with minimal configuration.

Deploy to Railway

npm i -g @railway/cli
railway login
railway init
railway up

Railway Pricing Reality

Railway has a Free plan ($0, with $1 of usage credit per month) and a one-time $5 trial credit. Hobby is $5/month with $5 of usage included. Pro is $20/month per workspace — seats are unlimited and included — with $20 of usage included, then resource usage on top (roughly $20/vCPU and $10/GB RAM per month, $0.05/GB egress). Check Railway's pricing page for current rates.

Usage-based pricing means you pay for what you consume. That suits apps with variable traffic, but it's less predictable for monthly budgeting.

Best For

  • Full-stack applications needing managed databases
  • Apps requiring Redis, queues or worker processes
  • Projects wanting all services in one dashboard

Watch Out For

  • No edge network: services run in the regions you deploy them to
  • Database connection limits: can hit ceilings under high concurrency
  • Free plan is small: $1/month of credit covers little more than a sleeping test service, so real apps need Hobby ($5/mo). App sleeping to save usage is opt-in, not automatic

See Temps vs Railway for a feature-by-feature comparison.


How Do You Deploy Next.js With Docker on a VPS?

Docker on a VPS gives you full infrastructure control for the price of the server — for example a Hetzner CX23 at €5.49/month ex VAT. If you'd rather skip Docker and run Next.js under PM2 behind Nginx, follow the manual VPS guide.

Step 1: Configure Standalone Output

Add output: "standalone" to your Next.js config. This produces a minimal production build that doesn't need the full node_modules directory.

/** @type {import('next').NextConfig} */
const nextConfig = {
  output: "standalone",
};
module.exports = nextConfig;

Step 2: Create Your Dockerfile

FROM node:22-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build

FROM node:22-alpine AS runner
WORKDIR /app
ENV NODE_ENV=production
COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/.next/static ./.next/static
COPY --from=builder /app/public ./public
EXPOSE 3000
CMD ["node", "server.js"]

This multi-stage build keeps only the standalone server, static assets and public/ in the final image.

Step 3: Deploy to Your VPS

docker build -t my-app .
docker run -d -p 3000:3000 my-app

For production, you'll want a reverse proxy (Nginx or Caddy) in front of Docker for SSL termination and caching. You'll also need a CI/CD pipeline — GitHub Actions is the most common choice.

Docker + VPS Pricing Reality

You pay for the server and your own time. One small VPS handles a typical low-traffic app; high-traffic apps need larger or multiple servers plus a load balancer, all of which you configure yourself.

Best For

  • Cost optimization at very high scale
  • Strict compliance requirements
  • Custom server configurations
  • Teams with dedicated DevOps resources

Watch Out For

  • No automatic scaling: you must configure this manually
  • SSL setup required: Let's Encrypt with Certbot or a Caddy reverse proxy
  • Security responsibility: you manage OS updates, patches and firewall rules
  • No built-in CI/CD: need GitHub Actions, GitLab CI or similar

Who should avoid this approach? Anyone without DevOps experience or time to maintain servers. The money you save over a managed platform isn't worth it if a misconfigured firewall leads to a breach.


How Do You Deploy Next.js to Cloudflare?

Cloudflare Pages offers unlimited static bandwidth on all plans, including the free tier, served from 300+ edge locations. For server-rendered apps, Cloudflare now points you to Workers: its Next.js guide recommends vinext — a Vite plugin that reimplements the Next.js API — as the default way to run Next.js on Workers, and keeps the OpenNext adapter for existing OpenNext apps that can't migrate yet. vinext is in beta, so run its compatibility check before moving a production app. Pages remains a solid choice for static exports. Every free-plan limit, including the 100,000 requests/day Workers cap, is listed in Cloudflare Pages free tier limits.

Quick Deploy: Static Next.js to Cloudflare Pages

For purely static Next.js exports (set output: "export" in your Next.js config, which builds to the out directory), deployment takes four commands:

npm i -g wrangler
wrangler login
wrangler pages project create my-app
wrangler pages deploy out

The wrangler pages deploy out command uploads your static export to Cloudflare's network. Your site gets a .pages.dev subdomain immediately, with custom domain support in the dashboard.

Full SSR Deploy: vinext on Cloudflare Workers

For apps that use server-side rendering, API routes or server components, add vinext to the existing project:

npx vinext init

Then build and deploy to Workers:

npm run build:vinext
npx @vinext/cloudflare deploy

The migration is non-destructive: your normal next dev / next build setup keeps working alongside vinext while you test. For a brand-new project, npm create cloudflare@latest -- my-next-app --framework=next scaffolds the Cloudflare setup for you.

The OpenNext Fallback

If you already run the OpenNext adapter, @opennextjs/cloudflare, or hit a vinext compatibility gap, OpenNext still deploys Next.js to Workers on the Node.js runtime:

npm install @opennextjs/cloudflare
{
  "scripts": {
    "preview": "opennextjs-cloudflare build && opennextjs-cloudflare preview",
    "deploy": "opennextjs-cloudflare build && opennextjs-cloudflare deploy"
  }
}

The older @cloudflare/next-on-pages adapter is deprecated and archived — don't start new projects on it.

Configuring wrangler.toml for OpenNext

For more control over an OpenNext deployment, create a wrangler.toml in your project root:

name = "my-nextjs-app"
main = ".open-next/worker.js"
compatibility_date = "2026-01-01"
compatibility_flags = ["nodejs_compat"]

[assets]
directory = ".open-next/assets"
binding = "ASSETS"

[[kv_namespaces]]
binding = "MY_KV"
id = "your-kv-namespace-id"

The nodejs_compat flag is critical — without it, many Node.js APIs that Next.js depends on won't work in the Workers runtime.

Setting Up CI/CD With GitHub Actions

name: Deploy to Cloudflare Workers
on:
  push:
    branches: [main]

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: "22"
      - run: npm ci
      - run: npx opennextjs-cloudflare build
      - run: npx opennextjs-cloudflare deploy
        env:
          CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
          CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}

This workflow runs the same OpenNext build and deploy commands as the deploy script above, with the API token and account ID read from repository secrets; with vinext, replace the build step with npm run build:vinext and deploy with npx @vinext/cloudflare deploy.

Cloudflare Pricing Reality

Traffic LevelMonthly CostNotes
10K visitors, static exportFreeStatic assets are free
100K visitors, static exportFreeStatic assets are free
Any traffic, SSR on WorkersWorkers Free covers 100,000 requests/day with 10 ms CPU per invocation; Workers Paid is $5/mo minimumPer Cloudflare's Workers pricing; a real SSR app often exceeds 10 ms CPU, so budget for Paid

Free static bandwidth is the standout feature. On Vercel, a media-heavy site that exceeds the included 1 TB pays for a higher Flat Rate CDN tier or on-demand transfer from $0.15/GB; on Cloudflare, static asset bandwidth costs nothing. See Temps vs Cloudflare Pages for how the two compare.

What Works Well on Cloudflare

  • Static exports and cached pages served from 300+ edge locations
  • Image optimization via Cloudflare Images
  • Unlimited static bandwidth on all plans including free
  • Git integration with GitHub and GitLab for automatic deploys
  • Custom domains with free SSL

What Doesn't Work (or Works Differently)

  • Workers runtime, not full Node.js: your app runs on Cloudflare's workerd runtime — most Node.js APIs work with nodejs_compat, but native modules and some edge cases don't
  • CPU limits: Workers have a 10 ms CPU time limit per request on the free plan (30 seconds by default on the $5/mo Workers Paid plan)
  • Build timeout: the 20-minute limit can be tight for large monorepos
  • Dynamic rendering: server components with database access require additional setup
  • Legacy Pages SSR path: @cloudflare/next-on-pages is deprecated — server-rendered projects should target Workers via vinext or OpenNext

Which Platforms Support Zero-Config CI/CD for Next.js?

Vercel — The reference experience. Connect GitHub/GitLab, push to any branch, get a preview deployment URL in your PR. Production deploys happen on merge to main. No configuration files needed.

Temps — Same git-push workflow as Vercel, running on your own servers. Connect your repo in the dashboard and every push to the main branch deploys; turn on preview environments in the project settings and every other branch gets its own preview URL (preview deployment docs).

# Temps: connect repo, then every git push auto-deploys
git push origin main  # → production deploy
git push origin feature-branch  # → preview deployment with unique URL (preview environments enabled)

Railway — Connects to GitHub and auto-deploys on push. PR environments spin up an isolated preview of your services for each pull request and tear it down on merge.

Cloudflare — Git integration with GitHub/GitLab. Preview deployments on every PR. SSR apps need a vinext or OpenNext build step.

Docker + VPS — No CI/CD included. You must set up GitHub Actions, GitLab CI or another pipeline yourself.

If you don't want to manage CI/CD pipelines, Vercel, Temps and Cloudflare are your best options. The difference comes down to cost model (per-seat vs infrastructure-only) and what's included beyond deployment.


Which Platforms Support Next.js Edge Runtime?

The Next.js Edge Runtime lets you run server-side code at the network edge for lower latency on dynamic pages. Only platforms with an edge network run it at the edge:

PlatformEdge networkHow It Works
VercelYesNative integration, runs on Vercel's edge network
CloudflareYes, via Workersvinext (default) or the OpenNext adapter on Workers
TempsNoRuns on your servers; Edge-runtime routes and middleware still work inside next start
RailwayNoRuns in the regions you deploy to
Docker + VPSNoRuns wherever your server is located

When edge runtime matters: If your users are globally distributed and you serve dynamic, personalized pages, running at the edge reduces Time to First Byte (TTFB). For most SaaS apps serving users in one or two regions, origin-based SSR performs well enough.

When it doesn't matter: Static sites, ISR pages and apps with a CDN in front don't benefit much from edge runtime. Vercel and Cloudflare include a CDN; with Temps or a plain VPS you can put Cloudflare in front of your server for static content.


Which Is the Best Way to Deploy a Next.js App in 2026?

Choosing a deployment platform isn't just about cost — though cost matters. Your choice should reflect where you are today and where you're heading.

Choose Vercel if:

  • You're prototyping and need maximum deployment speed
  • Budget isn't a primary concern
  • You want the tightest possible Next.js integration

Choose Temps if:

  • You're running production applications and want to own the servers
  • You want predictable costs that don't grow with your team size
  • You need built-in analytics, monitoring and error tracking — without a third-party subscription stack
  • Data ownership matters to your organization

Choose Railway if:

  • Your app needs databases and backend services
  • You want everything managed in one dashboard
  • Regional (non-edge) deployment is acceptable for your users

Choose Docker + VPS if:

  • You have DevOps expertise in-house
  • You need maximum infrastructure control
  • You're optimizing costs at very high scale

Choose Cloudflare if:

  • Your site is primarily static or uses ISR
  • Global edge performance is critical
  • You're on a tight budget and want unlimited static bandwidth

What Does Each Platform Actually Cost? Real Scenarios

Prices as of October 2026.

Scenario: SaaS with 5 developers, 100K monthly visitors

PlatformCalculationMonthly Cost
VercelPro $20 (1 seat) + 4 extra seats × $20 + Sentry Team $26 + Plausible $9$135, plus usage beyond the $20 credit
TempsFree software + one Hetzner CX23 (€5.49 ex VAT); size up as neededFrom €5.49
RailwayPro $20 per workspace (unlimited seats) + compute and database usage$20 + usage
Docker + VPSServer + your DevOps timeFrom €5.49 + time

100K monthly visitors fit inside Vercel Pro's 1 TB of included data transfer for most apps, so the Vercel figure is driven by seats and add-ons rather than bandwidth. Requests are the tighter limit for teams on Flat Rate CDN, the default for Pro teams created since 8 September 2026: at about 10 CDN requests per page view, 100K visitors viewing three pages each make roughly 3M requests, which exceeds the 1M included and moves the team to the $20/month tier. On on-demand pricing they fit inside the 10M included requests.

Scenario: Side project, solo developer

PlatformMonthly Cost
VercelFree (Hobby, non-commercial)
CloudflareFree
RailwayFree ($1 credit) or $5 (Hobby)

For non-commercial side projects, Vercel's free tier is hard to beat. The cost question becomes relevant once you add team members, go commercial or scale past free tier limits. For detailed formulas, see the Next.js hosting cost calculator.


Frequently Asked Questions

What is the best way to deploy a Next.js app in 2026?

It depends on your team size and traffic. For solo developers and non-commercial prototypes, Vercel's free tier is hard to beat. For teams running production apps, self-hosting removes per-seat fees. Cloudflare is best for static-heavy sites needing unlimited bandwidth. Temps is the closest like-for-like Vercel replacement: the same git-push workflow, self-hosted, with analytics and error tracking built in.

How much does it cost to deploy Next.js?

Costs range from $0 (Vercel Hobby for non-commercial use, Cloudflare's free tier) to $135/month for a five-developer team on Vercel Pro once you add Sentry Team and Plausible, before usage. Self-hosting Temps is free; you pay for the server, from €5.49/month ex VAT for a Hetzner CX23 (as of October 2026). Railway Pro is $20/month per workspace with unlimited seats, plus usage. The biggest variable is per-seat fees, which Vercel charges and Railway and Temps do not.

How do I deploy a Next.js app without Vercel?

Next.js is portable: standard apps run without code changes on any of these, and the main migration tasks are exporting environment variables and updating DNS. Pick a target, connect your Git repo and push:

  1. Temps (closest to Vercel): connect your GitHub repo in the dashboard or run bunx @temps-sdk/cli deploy. Every push builds and deploys automatically on your own server, with preview URLs per branch once preview environments are enabled.
  2. Railway: railway login, railway init, railway up. Good if your app also needs a managed database.
  3. Docker + VPS: add output: "standalone" to next.config.js, build with the multi-stage Dockerfile above, then docker run on a VPS such as a Hetzner CX23.
  4. Cloudflare Workers: wrangler pages deploy out for static exports, or npx vinext init and npx @vinext/cloudflare deploy for SSR apps (OpenNext remains the fallback).

Middleware, image optimization, API routes, server components and ISR all run under next start. What you replace are Vercel services such as Blob, Edge Config or vercel.json cron jobs. Temps is the closest like-for-like swap because it also replaces Vercel's paid add-ons — analytics, error tracking (a Sentry-compatible DSN, so the official Sentry SDK works unchanged) and uptime monitoring — instead of just hosting the app.

How do I deploy Next.js to Cloudflare?

Install the Wrangler CLI (npm i -g wrangler), authenticate with wrangler login, then run wrangler pages deploy out for static exports. For server-rendered apps, Cloudflare recommends vinext on Workers: run npx vinext init, build with npm run build:vinext, then deploy with npx @vinext/cloudflare deploy. Existing OpenNext apps can keep using @opennextjs/cloudflare; the older @cloudflare/next-on-pages adapter is deprecated.

What is the cheapest way to host a Next.js app?

For static sites, Cloudflare's free tier with unlimited static bandwidth; for dynamic apps, a single VPS running a self-hosted platform such as Temps. The Next.js hosting cost calculator works through the numbers for your team size and traffic.

Which Next.js deployment platforms support zero-config CI/CD?

Vercel, Temps, Cloudflare and Railway all deploy automatically from GitHub/GitLab — connect your repo, push code, and the platform builds and deploys. Preview deployments (unique URLs per PR or branch) are available on Vercel, Temps (once enabled in project settings), Cloudflare and Railway (via PR environments). Docker + VPS requires your own CI/CD via GitHub Actions or similar.

Which platforms support Next.js edge runtime in 2026?

Vercel runs the edge runtime natively on its edge network, and Cloudflare runs Next.js on Workers via vinext or OpenNext. Temps has no edge network: your app runs on your own servers, where Edge-runtime routes and middleware still work inside next start. Railway and Docker deployments run in the regions you choose. Edge runtime matters most for globally distributed dynamic content — static sites get similar performance from a CDN.

How do I deploy Next.js at scale with multiple apps?

On Vercel, cost scales with deploying seats and usage across all projects, so agencies with many developers and high-traffic sites feel it most. On a self-hosted platform like Temps or plain Docker, you run many apps on a few servers and the bill is those servers.


Related guides:

#next.js#deployment#vercel#railway#cloudflare#docker#hosting#wrangler pages deploy#next.js deployment platforms comparison 2026#deploy next.js app 2026#best ways to deploy next.js app 2026#deploy next.js without vercel#edge runtime#zero-config ci/cd#self-hosted