Next.js VPS HostingSelf-Host SSR, ISR and API Routes
Next.js running as a Node.js server supports all of its features: server rendering, ISR, route handlers, middleware and image optimisation. We install Node.js, PM2 and NGINX with HTTPS on a hardened VPS; you build and deploy your app.
Serverless platforms bill for function invocations, bandwidth and image optimisation. A VPS runs the same Next.js server for a flat monthly price.
01
A flat cost as traffic grows
No metered function calls or image optimisation charges: the plan price covers the server.
02
No function time limits
Long-running route handlers, streaming responses and background work are not cut off by a platform timeout.
03
Database and cache on the same server
Run PostgreSQL, MongoDB or Redis next to Next.js and query them over localhost.
04
Caching you control
The ISR and image caches live on your disk, and you decide the cache headers and what NGINX caches in front.
The stack
How Self-Hosted Next.js Is Served
NGINX in front, one Next.js Node server behind it, and static assets served straight from disk.
Request from a browser or app (HTTPS)
Reverse proxy
NGINX
HTTPS, compression and long cache headers for /_next/static; everything else goes to Next.js.
Process manager
PM2 or systemd
Runs next start (or the standalone server.js), restarts on failure and starts on boot.
Application
Next.js server
App Router or Pages Router: SSR, ISR, route handlers, middleware and image optimisation.
Runtime
Node.js LTS
The Node version your Next.js release requires.
Data
Your database or CMS
PostgreSQL, MongoDB, MySQL or a headless CMS, on this VPS or elsewhere.
Worth knowing
output: "standalone" produces a minimal server.js with only the files it needs, which keeps deploys small.
Image optimisation runs on the server; leave memory headroom on image-heavy pages.
Running several instances? Share the ISR cache through a custom cache handler, for example in Redis.
A static export (output: "export") needs only NGINX, with no Node process.
What you can run
What You Can Run
Marketing sites with ISR
Pages regenerated in the background as content changes, served at static speed.
SaaS front ends
Logged-in dashboards built with server components and route handlers.
Headless storefronts
Store front ends on Shopify, Medusa or WooCommerce APIs.
Headless CMS sites
Next.js front ends for WordPress, Strapi, Payload or Sanity content.
Docs and blogs
MDX documentation and blogs, statically generated or server-rendered.
Full-stack apps
Next.js with a database on the same VPS, using route handlers or server actions.
Shared hosting vs VPS
Outgrown shared hosting? A VPS has no shared limits.
Shared hosting is a good place to start. When a busy site keeps hitting its account limits, a VPS removes them.
On shared hosting
CPU, memory and processes are capped per account, so traffic spikes hit the ceiling.
You share the server with other sites.
No root access, and only the software the host supports.
Background workers, queues and WebSockets are limited.
On your own VPS
CPU, RAM and NVMe storage are dedicated to your server, not shared with neighbours.
Your plan's resources are yours, with no per-account caps to hit.
Full root and SSH access: install any software you need.
Run workers, cron jobs, queues and WebSockets freely.
A VPS is unmanaged: we install and secure it for you, then you run it. Prefer us to run everything? See managed hosting.
VPS Plans
VPS Plans for Next.js
Next.js builds are memory-hungry, so VPS-2 with 8 GB RAM is a comfortable start if you build on the server. VPS-1 suits smaller sites, or apps built in CI.
VPS-1
Small websites, APIs, bots and development servers.
* Unlimited traffic in Europe and North America. In Mumbai, Singapore and Sydney a monthly allowance applies (VPS-1 500 GB, VPS-2/VPS-3 1 TB, VPS-4 3 TB), then speed is limited to 10 Mbps until the next month.
Prices exclude 18% GST, which is added to invoices for customers in India.
Sizing guide
Which Plan for Your Next.js App
Running Next.js is light; building it is not. Size for the build if you build on the server.
Recommended VPS plan for each Next.js workload
Workload
Start with
Why
Marketing site or blog, built in CI
VPS-12 vCores · 4 GB RAM
next start with ISR fits comfortably.
App built on the server
VPS-24 vCores · 8 GB RAM
8 GB covers a production build while the site keeps running.
SaaS front end with heavy SSR
VPS-36 vCores · 12 GB RAM
More vCores for server rendering under load.
Several Next.js sites
VPS-48 vCores · 24 GB RAM
Room for multiple processes and builds.
A starting point, not a limit: every plan upgrades in place, keeping your data, IP address and configuration.
Next.js on Serverless or Self-Hosted?
Serverless adds an edge network and previews; self-hosting adds a fixed price and no function limits.
$ git pull && npm ci && npm run build && pm2 reload web
Example shell commands; adjust paths, names and versions to your project.
Example commands; adjust names, paths and versions to your project. Deploying and maintaining your application is yours to do (or ask us for a quote).
Free one-time setup
Installed and Secured Before You Log In
The VPS is unmanaged: after handover the server is yours to run. Before that, our engineers
do the first setup once, free, so you start from a hardened server with Next.js in place.
1
Choose a plan and location
Pick the resources you need and the datacentre closest to your users.
2
Tell us your Next.js setup
Versions, database and domain: at order or right after.
3
We install and secure it
Server hardened, Next.js installed and tested, HTTPS on your domain.
4
You take over with root
SSH access to a working server, ready for your code and data.
Your Next.js stack
Node.js LTS, the version your Next.js release needs
PM2 with startup on boot, or a systemd service
NGINX reverse proxy with cache headers for /_next/static
HTTPS with Let's Encrypt on your domain
PostgreSQL or MongoDB if you choose one at order
Yours to run after handover
Ongoing server administration
Application maintenance and updates
Debugging your code
Migrating existing sites or data
Not included in the free setup, but we can quote for it.
No control panel by default: CloudPanel, HestiaCP or Virtualmin on request at no cost;
cPanel and Plesk need their own licence.
Under the hood
Platform Specs and Locations
The same KVM platform on every plan; only the CPU, RAM, storage and port speed change.
VPS platform specifications
Virtualisation
KVM with reserved vCores and RAM
Storage
NVMe SSD on every plan
Network
Dedicated IPv4 and IPv6, 500 Mbps to 3 Gbps per plan
Operating systems
Ubuntu 26.04, 24.04 and 22.04 LTS · Debian 13, 12 and 11 · AlmaLinux · Rocky Linux · Fedora · FreeBSD
Access
Full root over SSH, key-based login
Backups
Automatic daily backup of the previous 24 hours; snapshots and longer retention on request
Protection
Always-on anti-DDoS mitigation
Availability
99.9% uptime SLA
Secured before we hand it over
Non-root sudo user created for daily work
SSH key login, password login for root disabled
Firewall (UFW) open only for the ports you use
Fail2ban blocking repeated login attempts
Automatic security updates enabled
Free Let's Encrypt SSL on your domain
Timezone, swap and hostname configured
Asia-Pacific
Mumbai
Singapore
Sydney
Europe
London
Limburg
Roubaix
Gravelines
Strasbourg
Milan
Warsaw
North America
Beauharnois
Availability per location changes with demand; we confirm your location before setup. In Mumbai, Singapore and Sydney each plan includes a monthly traffic allowance (VPS-1 500 GB, VPS-2 and VPS-3 1 TB, VPS-4 3 TB); beyond it, speed is limited to 10 Mbps until the next month.
Who it's for
Who a Next.js VPS Suits
Teams leaving usage-based billing
Sites where serverless bills have become hard to predict.
Agencies building Next.js sites
Several client front ends on one server, each its own process.
Developers who want one box
Next.js, the database and the CMS together, managed over SSH.
Running it well
Security and Performance for Next.js
Security
Keep server-only secrets out of NEXT_PUBLIC_ variables, which end up in the browser bundle.
Keep Next.js updated: framework releases regularly include security fixes.
Bind the Node server to localhost and let only NGINX face the internet.
Protect route handlers and server actions with authentication and input validation.
Performance
Let NGINX serve /_next/static with immutable cache headers.
Use static generation or ISR where you can; SSR on every request costs CPU.
Build in CI if server builds compete with live traffic for RAM.
Deploy the standalone output to keep releases small and quick to copy.
Next.js VPS FAQs
Questions Before You Deploy
Not covered here? Ask an engineer before you order.
Yes. Running Next.js as a Node.js server with next start supports server rendering, ISR, route handlers, middleware, server actions and image optimisation. Only a hosting provider's own extras, such as its edge network, are not part of self-hosting.
The free one-time setup installs Node.js, PM2, NGINX and SSL on a hardened server. Building and deploying your app, and keeping it updated, are yours to do over SSH or from CI, or we can quote for help.
Both work. Building on the VPS is simplest, but a production build of a large app can briefly use several gigabytes of RAM. Building in CI and uploading the standalone output keeps the server's resources for live traffic.
Yes. With output: "export" the site is plain HTML, CSS and JavaScript, and NGINX serves it without a Node process. You give up server features such as ISR, route handlers and middleware.
Build the new version, then pm2 reload to restart processes one at a time, or switch a symlink between release folders. Automated deployment is not part of the setup, but root access lets you add any tool you like.
Yes. Each site runs as its own process on its own port, with an NGINX server block per domain. RAM is usually the limit, so plan for builds as well as running processes.