Next.js on a VPS vs Vercel (Cost Math)
Four stages, one evening:
- Prepare Ubuntu — update packages, create a deploy user with sudo, install Node LTS via NodeSource, open 22/80/443 in UFW.
- Build and run with PM2 —
npm ci && npm run build, thenpm2 start npm --name myapp -- start; save the process list for reboots. - Nginx reverse proxy — server block forwarding port 80 to your Node port with proxy headers set.
- Domain and SSL — point DNS, then
certbot --nginx -d yourdomain.comfor free Let's Encrypt HTTPS with auto-renewal.
The economics versus Vercel: a ₹5,900/month cloud VPS carries unmetered-ish bandwidth and any number of apps, while Vercel's metered egress grows with traffic. Below production scale, the VPS wins cost; above it, you own capacity either way.
Step 1: Prepare Ubuntu VPS (Node, UFW)
How this plays out with Next.js: settings that look cosmetic usually decide page speed and uptime under real traffic. The defaults WebJi® ships are tuned for Indian network conditions, and support can review your setup on request.

Step 2: Build and Run With PM2
Build and Run With PM2. Do this on one site or a staging copy first, then check the public URL in a private window so cache does not hide the result. Stop if the page errors, and email support@webji.services with the step name and the exact error before you repeat it on every account. WebJi® support mail is staffed 24/7 in Hindi and English; the phone line +91 141 4941811 is business hours only.
Step 3: Nginx Reverse Proxy Config
How this plays out with PM2 process manager: settings that look cosmetic usually decide page speed and uptime under real traffic. The defaults WebJi® ships are tuned for Indian network conditions, and support can review your setup on request.
Step 4: Domain and SSL With Certbot
Domain and SSL With Certbot. Install the certificate on the account that actually serves the site, force HTTPS, then view the page source for http:// images, stylesheets or scripts. The padlock stays broken until those are HTTPS too. Renewal should be automatic; if the padlock disappears, check that the certificate is still bound to this hostname.
Keeping It Alive: Logs, Restarts, Updates
Production discipline is four habits:
- Logs —
pm2 logsfor app output, nginx access/error logs for the front; logrotate or journald limits so disks do not fill silently. - Restarts that survive reboots —
pm2 savepluspm2 startupregisters the process list with systemd; without it, a server reboot leaves your app dark until you notice. - Updates — deploy via Git pull and rebuild in a release folder, flipping a symlink atomically; roll back by flipping back.
- Backups and monitoring — snapshots before deploys, and uptime monitoring pinging the homepage so you learn about outages before users tweet them.
The failure modes are predictable — full disks, dead PM2, expired certificates — and all three are covered by habits, not heroics. Managed cloud, explained, covers handing the boring parts over.
Frequently Asked Questions
How do I deploy a Next.js app on a VPS?
Deploy Next.js on a VPS (PM2 + Nginx). Email support@webji.services is 24/7 in Hindi and English, average first reply under 60 minutes. Phone +91 141 4941811 is business hours. If the question is about your own account, open a ticket at https://billing.webji.in/submitticket.php?step=2&deptid=10.
Do I need Nginx in front of Next.js?
For “Do I need Nginx in front of Next.js”: Logs — pm2 logs for app output, nginx access/error logs for the front; logrotate or journald limits so disks do not fill silently.
How much RAM does Next.js need on a VPS?
Deploy Next.js on a VPS (PM2 + Nginx) is quoted per requirement on this page, in INR, with 18% GST on the invoice. Email support@webji.services or open a ticket at https://billing.webji.in/submitticket.php?step=2&deptid=10 and the desk sends the figure before you pay. There is no dollar price converted at checkout, and a design or SEO quote is a project price — it is not a hosting renewal.
How do I keep Next.js running after a reboot?
Deploy Next.js on a VPS (PM2 + Nginx). Email support@webji.services is 24/7 in Hindi and English, average first reply under 60 minutes. Phone +91 141 4941811 is business hours. If the question is about your own account, open a ticket at https://billing.webji.in/submitticket.php?step=2&deptid=10. The question here is: How do I keep Next.js running after a reboot.
Can I deploy Next.js without Vercel?
It depends on the plan you order. Deploy Next.js on a VPS (PM2 + Nginx) is billed in INR with 18% GST. Email support@webji.services with this question before you pay — the desk is 24/7 in Hindi and English, and the average first reply is under 60 minutes. Phone +91 141 4941811 is business hours only.
How do I add HTTPS to a Next.js VPS deployment?
Deploy Next.js on a VPS (PM2 + Nginx). Email support@webji.services is 24/7 in Hindi and English, average first reply under 60 minutes. Phone +91 141 4941811 is business hours. If the question is about your own account, open a ticket at https://billing.webji.in/submitticket.php?step=2&deptid=10. The question here is: How do I add HTTPS to a Next.js VPS deployment.
Is WebJi® an Indian company?
Yes. WebJi® is headquartered in Jaipur, Rajasthan and has operated since 2005. Billing, support and governance all run from India.
Do you provide GST invoices?
Every purchase and renewal gets a GST invoice with our GSTIN, and hosting prices are quoted exclusive of 18% GST. Claim input credit as applicable.

