Skip to main content
    Guide

    Next JS Hosting: Platforms, Pricing & Self-Hosting Guide

    October 28, 2026
    16 min read
    Next JS Hosting: Platforms, Pricing & Self-Hosting Guide

    Next.js runs anywhere that can run a Node.js server. According to the official Next.js documentation, both next start and a Docker container support every Next.js feature, so you are not locked into one vendor. The real choice is between three things: managed convenience with preview deployments (Vercel, Netlify), code running close to users around the world (Vercel, Cloudflare), and a flat monthly bill on a server you run yourself (a VPS or Node.js hosting). This guide explains what Next.js needs from a host, compares the main options with prices checked on 28 October 2026, and walks through self-hosting on a VPS.

    Key Takeaways

    • Next.js itself is free and open source under the MIT licence. What you pay for is the hosting.
    • A Node.js server (next start) or a Docker image supports all Next.js features: server rendering, ISR, image optimization, Proxy (the feature formerly called Middleware) and Server Actions. A static export supports only a subset.
    • Vercel, Netlify and Cloudflare give you Git-based deploys, a global network and usage-based pricing. A VPS or container platform gives you a fixed or per-instance bill and more work.
    • Self-hosting on one server is simple: build, run the app under systemd or Docker, and put Nginx or Caddy in front. Running several instances needs a shared cache and a few extra settings.
    • On Devoster, a Next.js app runs on Node.js hosting on the Enhance control panel or on an unmanaged KVM VPS in Utah, USA or Paris, France. Neither is an edge platform, and there are no preview deployments, so if you need global edge rendering, Vercel or Cloudflare is the better fit.

    What Next.js needs from a host

    A Next.js app can be anything from a folder of HTML files to a long-running server process that renders pages on every request. Before you compare hosts, list the features your app actually uses, because that decides which hosts can run it:

    • Static pages. Routes that do not read cookies, headers or other request data are prerendered at build time. Any web server or CDN can serve them.
    • Dynamic rendering (SSR). Pages rendered per request need a running server process.
    • ISR and revalidation. Pages that are cached and regenerated on a timer or on demand. When self-hosted, the cache lives on the local disk of each server instance by default.
    • Image optimization. The default next/image loader resizes and converts images at request time. It needs a server.
    • Proxy. In Next.js 16 the middleware file convention was renamed to proxy, and it now runs on the Node.js runtime by default. It runs before a route renders and is used for redirects, rewrites and auth checks.
    • Server Actions, Route Handlers that read the request, streaming with Suspense, and after(). All of these need a server.
    Feature Node.js server or Docker Static export (output: "export") Self-hosting notes
    Static pages Yes Yes Can be cached by any CDN
    Dynamic rendering (SSR) Yes No Runs wherever your server is
    ISR / revalidation Yes No Works automatically on one instance with a persistent disk; several instances need a shared cache handler
    Image optimization (default loader) Yes Only with a custom loader Zero configuration with next start; uses the sharp library
    Proxy (formerly Middleware) Yes No Zero configuration with next start
    Server Actions Yes No Several instances must share one encryption key
    Streaming / Suspense Yes No The reverse proxy must not buffer responses
    Redirects, rewrites, headers in next.config.js Yes No Or configure them in Nginx/Caddy

    Sources: Next.js docs on Deploying, Self-Hosting, Static Exports and proxy.js, checked 28 October 2026.

    What "edge" really means for your choice

    "Edge" gets used for two different things. One is the Edge runtime, a restricted JavaScript runtime. The other is running your code in many locations at once, close to each visitor. Self-hosting does not cost you the first in any way that matters: since Next.js 16, Proxy runs on Node.js by default. It does cost you the second. On one server, every request that needs server rendering travels to wherever that server is. A CDN in front can cache static assets and fully static pages, which Next.js marks with Cache-Control: public, but dynamic pages still go back to your server. If most of your pages are dynamic and your visitors are spread across continents, that distance is the main thing a global platform buys you.

    Is Next.js free?

    The framework is free and MIT-licensed, for commercial use too. Hosting is where the cost appears, and there are a few genuinely free paths:

    • Vercel Hobby is free, but Vercel describes it as being for "personal, non-commercial use", and its usage caps cannot be raised by paying. A business site belongs on a paid plan.
    • Netlify Free and Cloudflare Workers Free both have free tiers with usage limits (details below).
    • A static export (output: "export") can be hosted on any static file host, including GitHub Pages, for which Next.js provides a template. You give up every server feature in the table above.

    Once the app earns money or needs server features at real traffic, you are choosing between paying for usage on a platform and paying a flat fee for a server you manage.

    Next.js hosting options compared

    Vercel

    Vercel is the company behind Next.js, and its integration is one of the two "verified adapters" listed in the Next.js docs. You connect a Git repository, every push builds and deploys, every branch gets a preview URL, and rendering runs on Vercel's global infrastructure. You do not manage servers at all.

    Pricing (vercel.com/pricing, checked 28 October 2026): Hobby is $0 for personal, non-commercial use and capped. Pro is $20 per month per developer seat and includes $20 of usage credit; usage beyond that is billed pay-as-you-go. Enterprise is custom. The model is seats plus usage, so the bill follows your traffic and how much server rendering you do.

    Choose it when you want zero operations, preview deployments for every pull request, and fast server rendering for visitors around the world.

    Netlify

    Netlify runs Next.js through its own integration. The Next.js docs list it among platforms with their own integrations and note that Netlify is working on a verified adapter, so check Netlify's Next.js support page for any feature you depend on. Like Vercel, it offers Git-based deploys and deploy previews.

    Pricing (netlify.com/pricing, checked 28 October 2026): credit-based. Free is $0 with 300 credits; Personal is $9 per month with 1,000 credits; Pro is $20 per month with unlimited members and 3,000 credits; Enterprise is custom. Credits are spent on production deploys (15 each), compute (10 per GB-hour), bandwidth (20 per GB) and web requests (2 per 10,000). Extra credit packs can be bought.

    Cloudflare Workers

    Cloudflare runs your app on its global network. Its Next.js guide now recommends vinext, which Cloudflare describes as "a Vite plugin that reimplements the Next.js API surface". It is in beta, and Cloudflare advises running its compatibility check before moving a production app. The older OpenNext adapter remains for apps that cannot migrate yet. Either way you are not running the stock Next.js server, so test the features you rely on.

    Pricing (Cloudflare Workers pricing docs, checked 28 October 2026): the free plan allows 100,000 requests per day with 10 ms of CPU time per invocation. The paid plan has a $5 monthly minimum per account and includes 10 million requests and 30 million CPU milliseconds a month, then $0.30 per additional million requests and $0.02 per additional million CPU milliseconds.

    Container platforms

    Render, Railway, Fly.io, Google Cloud Run, AWS Amplify and DigitalOcean App Platform all deploy Next.js, and the Next.js docs link to deploy templates for several of them. You hand over a repository or a Docker image and the platform runs it. Feature support is complete when they run your Docker image, because it is just next start in a container. Pricing is usually per instance size per month, or per second of compute. Some can scale to zero when idle, which saves money but adds a cold start to the first request. We have not listed their prices here because we did not check them today; look at each vendor's pricing page.

    A VPS

    A virtual private server is a Linux machine you control. You install Node.js, build the app, keep it running and put a reverse proxy in front. You get every Next.js feature, a flat monthly price that does not change with traffic, and the freedom to run your database, Redis or a background worker on the same machine. The price for that is your time: operating system updates, the firewall, TLS certificates and backups of your data are your job. The app runs in one location.

    Node.js on shared hosting

    Some web hosting control panels can run a Node.js app inside your hosting account, behind the panel's web server. For Next.js this means next start running within the account's memory and CPU limits, without root access. It is the cheapest way to run a full-featured Next.js app with a panel, SSL and backups handled for you, and it suits small to medium apps. It is not built for heavy traffic or for running several instances.

    Option Next.js feature support Where your code runs Your ops work Pricing model
    Vercel Full (verified adapter) Global platform None Seats plus usage
    Netlify Own integration; check the docs Global platform None Credits
    Cloudflare Workers vinext (beta) or OpenNext; run the compatibility check Global network Low Requests plus CPU time
    Container platform Full with Docker Regions you choose Low to medium Per instance or compute time
    VPS Full (next start or Docker) One server, one location High: OS, security, proxy, backups Flat monthly
    Node.js on shared hosting Full in principle, within plan limits One datacenter Low to medium Flat monthly

    Need more power? Move up to a VPS

    Dedicated resources, full root access, and NVMe storage. From $3.49/mo, ready in minutes.

    Compare VPS plans

    Where Devoster fits, and where it doesn't

    Devoster is a small hosting company, and it sells two products that can run Next.js. Neither is a deployment platform in the Vercel sense, so here is exactly what you get.

    Node.js hosting on the Enhance control panel

    Node.js hosting runs on the same Enhance-based plans as Devoster's web hosting. The Enhance documentation describes how it works:

    • The Node.js app runs inside the website's container, with the same isolation and resource limits as PHP sites.
    • Node.js is installed per website and managed with nvm, so you pick the version your app needs.
    • You set a startup command (for example npm start) and a port between 1024 and 65535. The panel proxies the whole site, or one path of it, to that port. WebSocket proxying is an option you can switch on.
    • In automatic mode the panel starts the app and restarts it whenever it exits, and writes its output to a log file in your home directory.
    • Only the site's primary domain is proxied to the app, so redirect www and other aliases to it.

    For a Next.js app, the start script would be next start -p 3000 (any port of 1024 or above), with that port set in the panel. Deployment can use the panel's built-in Git integration, which is GitHub only: you pick a repository and a branch or tag, add a build command such as npm ci && npm run build, and either deploy by hand or turn on automatic deploys on every push. A new release goes live only if the clone and the build both succeed. If your code is on GitLab or Bitbucket, you can still clone and pull over SSH, but you run the build and restart yourself.

    Plans are Lite at $2.90/mo (768 MB memory, 0.7 vCPU), Standard at $5.90/mo (1 GB, 1 vCPU) and Pro at $9.90/mo (2 GB, 1.5 vCPU), with a Europe or US datacenter chosen at no extra cost. next build is usually the most memory-hungry moment in a Next.js app's life, so start on Standard or Pro rather than Lite. If a build still runs out of memory, move up a plan or build in CI and deploy the result. The web hosting for developers page covers SSH, staging and the Git integration in more detail.

    Sources: Enhance Node.js documentation and Enhance GitHub deploy documentation, checked 28 October 2026.

    Unmanaged KVM VPS in Utah, USA or Paris, France

    The VPS plans are KVM virtual machines with full root, Intel Xeon Gold 6138 CPUs, NVMe storage, a 1 Gbps port, unlimited bandwidth and one IPv4 address in Utah, USA; the Paris, France location runs Intel Xeon D-1531 with SSD storage, at the same prices, up to the Pro plan. They start at $3.49/mo for Nano (1 vCPU, 1 GB RAM, 25 GB), then Micro at $4.49/mo (1 vCPU, 2 GB, 50 GB) and Starter at $7.99/mo (2 vCPU, 4 GB, 75 GB), up to Mega at $34.99/mo (10 vCPU, 24 GB, 200 GB). Each VPS includes nightly whole-server backups with the last 3 days kept, plus one snapshot you can take yourself.

    On a VPS you run next start or the standalone server behind Nginx or Caddy, or you run the app in Docker (see Docker VPS hosting). It is unmanaged: there is no control panel, and patching, firewalling and backing up your own data are your job. If you build on the server itself, 1 GB is tight for a large app; Micro or Starter gives more headroom, or build in CI and copy the output over.

    When Devoster is the wrong choice

    • Your visitors are worldwide and most pages are rendered per request. Each Devoster server runs in one location you choose, and we do not run your code in multiple regions. Vercel or Cloudflare will serve distant visitors faster.
    • You want a preview URL for every pull request, one-click rollbacks and no servers to think about. That is Vercel's and Netlify's core product.
    • Your traffic is very spiky and you want capacity to grow and shrink on its own. A fixed-size server has to be sized for the peak.
    • You expect a deploy CLI or API. Devoster has none. Deploys go through the Enhance GitHub integration, SSH or your own scripts.
    • You do not want to administer a server and your app needs more than a hosting account can give. The VPS is unmanaged by default; a management package (from $23.40 per server per month) covers OS updates, monitoring and security checks, but if you want deploys handled too, a PaaS fits better.
    • Your data must stay in Europe and you need root. The VPS can run in Paris, France, but its nightly backups are stored in the US. Node.js hosting can be placed in Europe, but without root.

    Self-hosting Next.js on a VPS: a short walkthrough

    This is the minimal production setup for one Next.js app on a fresh Ubuntu 24.04 server: the standalone build, a systemd service and a reverse proxy. It works the same on any provider's VPS.

    1. Secure the server

    Log in as root once, create a regular user, set up SSH key login for it, and open only the ports you need:

    adduser deploy
    usermod -aG sudo deploy
    ufw allow OpenSSH
    ufw allow 80,443/tcp
    ufw enable

    Then turn on unattended security updates (apt install unattended-upgrades) so the OS keeps patching itself.

    2. Install Node.js

    As the deploy user, install the current LTS release of Node.js with nvm (or from your distribution's or NodeSource's packages):

    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
    source ~/.bashrc
    nvm install --lts
    which node

    Note the path that which node prints; systemd needs it later.

    3. Enable the standalone output and build

    In next.config.js, set output: 'standalone'. The build then writes a .next/standalone folder containing a minimal server.js and only the dependencies the app needs. The public and .next/static folders are not copied by default, so copy them in after each build:

    git clone https://github.com/you/your-app.git app
    cd app
    npm ci
    npm run build
    cp -r public .next/standalone/ && cp -r .next/static .next/standalone/.next/

    Plain next start works too if you prefer to keep the full node_modules; standalone just makes the deployed folder smaller.

    4. Run it as a service

    Create /etc/systemd/system/nextjs.service. Replace /usr/bin/node with the path from step 2 if you used nvm:

    [Unit]
    Description=Next.js app
    After=network.target
    
    [Service]
    User=deploy
    WorkingDirectory=/home/deploy/app
    Environment=NODE_ENV=production
    Environment=PORT=3000
    Environment=HOSTNAME=127.0.0.1
    EnvironmentFile=-/home/deploy/app/.env.production
    ExecStart=/usr/bin/node .next/standalone/server.js
    Restart=on-failure
    
    [Install]
    WantedBy=multi-user.target
    sudo systemctl daemon-reload
    sudo systemctl enable --now nextjs

    HOSTNAME=127.0.0.1 keeps the app off the public internet so that only the reverse proxy can reach it. Keep server secrets in the environment file, not in Git. Remember that variables prefixed with NEXT_PUBLIC_ are inlined into the JavaScript bundle at build time, so changing one means rebuilding.

    5. Put a reverse proxy in front

    The Next.js docs recommend a reverse proxy rather than exposing the Node.js server directly, because it handles malformed requests, slow-connection attacks, payload limits and rate limiting. Caddy is the shortest path, because it obtains and renews HTTPS certificates automatically. The whole Caddyfile is:

    example.com {
        reverse_proxy 127.0.0.1:3000
    }

    With Nginx, proxy to the same port and add a certificate with Certbot (certbot --nginx -d example.com):

    server {
        listen 80;
        server_name example.com;
    
        location / {
            proxy_pass http://127.0.0.1:3000;
            proxy_set_header Host $host;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;
        }
    }

    Nginx buffers responses by default, which breaks streaming with Suspense. The Next.js docs suggest sending an X-Accel-Buffering: no header from next.config.js; setting proxy_buffering off in that location block works too.

    6. Deploy updates

    An update is git pull, npm ci, npm run build, the two copy commands, then sudo systemctl restart nextjs. systemd stops the old process with SIGTERM, and Next.js finishes in-flight requests and pending after() callbacks before exiting. There is a short gap while the new process starts. For zero-downtime deploys, run two copies on different ports and switch the proxy between them, or move to containers.

    The Docker alternative

    If you prefer containers, the official with-docker example builds a small image from the standalone output. Run it with Docker Compose next to your database, keep Caddy or Nginx in front, and you can move the same image between servers. Docker needs a KVM VPS or similar; it does not run in a shared hosting account.

    Scaling past one server

    One well-sized server goes a long way, and scaling up to a bigger plan is the simplest next step. When you do run several instances behind a load balancer, the Next.js self-hosting guide lists what changes:

    • Shared cache. ISR and the data cache live on each instance's disk by default, so instances drift apart. Configure a cacheHandler that stores entries in something every instance can reach, such as Redis, and implement tag coordination so a revalidation on one instance reaches the others.
    • One build everywhere. All instances should run the same build. Set deploymentId so that clients on an old version do a full reload instead of requesting assets that no longer exist.
    • Same encryption key. Set NEXT_SERVER_ACTIONS_ENCRYPTION_KEY at build time, or Server Actions encrypted by one instance fail on another.

    How the pricing models behave

    Comparing list prices only tells you part of the story, because the models charge for different things:

    • Usage-based platforms (Vercel, Netlify, Cloudflare) are cheap or free for small and quiet apps, and you never pay for idle capacity. The bill grows with requests, rendering time and bandwidth, so a traffic spike or a crawler can move it. Set spend alerts or limits where the platform offers them.
    • Per-instance platforms charge for the size of the container whether it is busy or not, plus bandwidth on some providers.
    • Flat-rate servers (a VPS or a hosting plan) cost the same at 10 visitors or 10,000, until the server is full and you need a bigger one. You pay in time instead of money for setup and maintenance.

    Whatever you choose, the same habits lower the cost: prerender everything that does not need per-request data, use ISR for pages that change occasionally, and keep dynamic rendering for routes that truly need it. Fewer server renders means a smaller usage bill on a platform, and more headroom on a fixed server.

    Moving a Next.js app to a new host

    1. Deploy to the new host and test it on a temporary hostname or a staging subdomain, including the routes that use ISR, Server Actions and images.
    2. Copy environment variables and secrets, and rebuild if any NEXT_PUBLIC_ value differs.
    3. A day ahead, lower the DNS TTL on the records you will change.
    4. Switch DNS at a quiet hour and watch the logs for 404s, 500s and hydration errors.
    5. Keep the old deployment running for at least a day so you can switch back.

    Common self-hosting problems

    • 502 Bad Gateway. The proxy and the app disagree about the port or the address. Check PORT and HOSTNAME and that the service is running (systemctl status nextjs).
    • The build gets killed. next build ran out of memory. Add swap, build on a bigger machine or in CI, or move up a plan.
    • Streaming pages arrive all at once. Something between the browser and Next.js is buffering. Turn buffering off in Nginx and in any load balancer in front.
    • High memory use from images. The Next.js docs note that on glibc-based Linux, sharp may need a different memory allocator to avoid excessive memory use.
    • A changed variable has no effect. If it starts with NEXT_PUBLIC_, it was baked in at build time; rebuild.
    • Missing CSS or JavaScript after a deploy. The public and .next/static folders were not copied into the standalone folder.

    Start fast with Shared Web Hosting

    The simplest, most affordable way to get online. Includes SSL, CDN, and solid performance.

    Browse plans

    Frequently Asked Questions

    Is Next.js free?

    Yes. Next.js is open source under the MIT licence, and you can use it commercially without paying. You pay only for hosting. Vercel's Hobby plan is free for personal, non-commercial projects, Netlify and Cloudflare have free tiers with limits, and a static export can be hosted for free on GitHub Pages.

    What is the best place to host a Next.js app?

    It depends on what you are optimizing for. For zero operations, preview deployments and fast rendering worldwide, Vercel is the most direct choice. For a lower and predictable monthly bill, with the work of running a server, a VPS or Node.js hosting runs every Next.js feature. Container platforms sit in between.

    Can I host Next.js without Vercel?

    Yes. The Next.js docs state that a Node.js server (next start) and a Docker container both support all Next.js features. Any host that runs Node.js or Docker can run a Next.js app, and Netlify and Cloudflare offer their own integrations.

    Can Next.js run on shared hosting?

    Only if the hosting runs Node.js apps, and not just PHP. On Devoster's Node.js hosting, which uses the Enhance control panel, the app runs with next start inside the website's container on a port you choose, within the plan's memory and CPU limits. A static export runs on any hosting, but without server features.

    Do ISR, image optimization and middleware work when self-hosting?

    Yes. With next start, image optimization and Proxy (the renamed Middleware) work with zero configuration, and ISR works automatically on a single instance with a persistent disk. Only multi-instance setups need extra work: a shared cache handler, a deployment ID and a shared encryption key.

    Does Devoster offer edge functions or preview deployments?

    No. Devoster runs Next.js on Node.js hosting (from $2.90/mo, Europe or US) or on an unmanaged KVM VPS from $3.49/mo in Utah, USA or Paris, France, each in one location. There are no preview deployments and no deploy CLI; Git deploys come from Enhance's GitHub integration. If you need those features, use Vercel, Netlify or Cloudflare.

    Ready to Experience Devoster?

    Join thousands of satisfied customers with transparent pricing and lightning-fast hosting.

    We value your privacy

    We use essential cookies to make our site work, and optional analytics cookies to understand how you use Devoster and improve our services. You can accept all cookies, or adjust your preferences.

    Read more in our Cookie Policy and Privacy Policy. You can change your choices at any time.