Next.js Hosting: Choose the Right Setup
The four ways to deploy Next.js, what each supports, how to size costs and what to configure when you self-host.

Compare Next.js hosting options: static export, Node.js server, Docker or a managed platform, with feature limits, self-hosting setup and cost sizing.
Choosing where to run a Next.js site is often treated as a formality: pick a popular platform and deploy. The choice matters more than that. It decides which framework features work without extra effort, how caching behaves when you run more than one server, how costs grow with traffic and how much operational work your team takes on. Next.js hosting options range from a fully static export served from a file host to self-managed containers on your own cloud account. This guide explains the main options, what each supports, how to size and cost them sensibly, and the configuration details that catch teams out when they self-host.
The four ways to deploy Next.js
According to the Next.js deployment documentation, an application can be deployed as a Node.js server, a Docker container, a static export, or adapted to run on different platforms. The same page summarises feature support: all features for a Node.js server and a Docker container, limited features for a static export, and varying support for adapters, with verified adapters running the framework's test suite.
In practice that gives four broad choices:
- Static export: the site is built into HTML, CSS and JavaScript files and served from any static host or CDN
- Node.js server: the built application runs with next start on a virtual machine or platform that supports Node.js
- Docker container: the same server packaged as a container, run on a container service or Kubernetes
- Platform with an adapter: a hosting provider that builds and runs Next.js for you, mapping its features onto their infrastructure
When a static export is enough
A static export is the simplest and cheapest Next.js hosting option to operate: no server to patch or scale, and files served from a CDN close to visitors. It suits marketing sites, documentation and blogs where content changes at build time.
The limits are real. The static exports guide lists features that need a server and are not supported, including rewrites, redirects, headers, Incremental Static Regeneration, Server Actions, draft mode and image optimisation with the default loader. Images can still be optimised by configuring a custom loader that uses an external image service. If you need redirects, they must be configured on the host or CDN instead. The deployment page notes you can start static and later move to a server when you need those features.
Running a Node.js server or container
Running next start, directly or in a container, supports every feature and gives you full control. It also makes you responsible for things a platform would handle. The Next.js self-hosting guide highlights several:
- Reverse proxy: it recommends putting a reverse proxy such as nginx in front of the Next.js server rather than exposing it directly, to handle malformed requests, slow connections, payload limits and rate limiting
- Image optimisation: it works with zero configuration when using next start, or can be handed to a separate service
- Caching with several instances: by default, the cache is stored on each server's local disk. The guide explains that with multiple instances, such as several Kubernetes pods, each has its own copy, so you should configure a shared cache handler to avoid serving stale data
- Build consistency: the same build should be used across containers, and if you rebuild per environment, you need a consistent build ID
Our guide to Kubernetes zero downtime deployment covers rolling releases if you run containers on Kubernetes.
Using a managed platform
Managed platforms build and run your application, provide previews for each change and handle scaling. They reduce operational work at the cost of less control and pricing that depends on the provider's model, often tied to requests, compute time or bandwidth. The deployment documentation also lists providers that publish their own Next.js guides, such as Google Cloud Run, Fly.io and Render.
Before choosing, check which Next.js features the platform supports for your version, how it handles caching and regeneration, where it runs your code, and how its pricing behaves at your expected traffic and under a sudden spike.
Size and cost from your own traffic
Avoid sizing hosting from general rules of thumb. Instead:
- Identify which pages are static, regenerated or rendered per request, using your rendering choices
- Estimate requests per month for each type from analytics
- Note that static and cached pages cost little to serve, while per-request rendering uses compute on every visit
- Account for image optimisation, which can be a significant share of server work on image-heavy sites
- Test under load with realistic traffic before launch
Often the biggest saving comes from rendering choices, not from the host. Making a page static or regenerated instead of rendering it on every request reduces cost on any platform. Our guide to Next.js rendering strategies covers those choices per page.
Worked example: matching hosting to three sites
The table below shows how three hypothetical projects might choose hosting. The decisions are illustrative and depend on each team's skills and requirements.
ProjectKey requirementsSuggested hostingWhyCompany marketing siteContent updated weekly, no loginsStatic export on a CDNLowest operating effort; redirects set at the CDNContent-heavy blog with frequent updatesPages regenerated on publish, preview for editorsManaged platform or single Node.js serverNeeds regeneration and draft mode, which static export lacksCustomer portal with loginsPer-user pages, APIs, compliance needsDocker containers on the company's cloud accountFull control over network, data location and scaling
The portal team also configures a shared cache and a reverse proxy, following the self-hosting guide, because it runs several containers.
Plan for operations, not just launch
Whichever host you choose, decide who handles monitoring and alerts, security updates for Node.js and dependencies, backups of anything stored outside the build, and how to roll back a bad release. A host that looks cheap can become expensive if your team spends hours each month maintaining it.
Common mistakes with Next.js hosting
- Choosing static export, then discovering redirects or regeneration are needed
- Running several server instances without a shared cache
- Exposing the Next.js server directly instead of behind a reverse proxy
- Rebuilding separately per environment with inconsistent build IDs
- Estimating cost without separating static and per-request pages
- No tested rollback path
Frequently Asked Questions
What are the options for Next.js hosting?
According to the Next.js documentation, you can deploy as a Node.js server, a Docker container, a static export, or through an adapter on platforms that support Next.js.
Can Next.js be hosted as a static site?
Yes, with a static export. Features that need a server, such as rewrites, redirects, Incremental Static Regeneration and Server Actions, are not supported in that mode.
What should you configure when self-hosting Next.js?
The self-hosting guide recommends a reverse proxy in front of the server, and explains that multiple instances need a shared cache handler and a consistent build ID.
How do you reduce Next.js hosting costs?
Render pages statically or regenerate them on a schedule where possible, cache data that changes rarely, and size hosting from measured traffic by page type.
Host Next.js with confidence
We choose, configure and run Next.js hosting that fits your features, traffic and team. See our custom app development services, or talk to us about your hosting.
About the Author
Manav Sharma is the founder of Insyrge and a CRM solutions architect. He works across Zoho, Salesforce, HubSpot, Odoo and more, designing the CRM setups, integrations and automations that keep sales and operations teams working from the same data.
Need Help Implementing This in Your Business?
Our certified Zoho consultants and automation experts can help you design and deploy custom workflows tailored to your operations.
Book Free Consultation