Deploying Next.js and Strapi on a Single Small VPS: A Production Setup
An agency describes running its client websites on one budget VPS costing roughly $10–20 per month, combining a Next.js frontend, a Strapi headless CMS, and PostgreSQL. Nginx handles SSL and proxies traffic to both Node apps, while PM2 keeps them running and restarts them after reboots. The guide recommends at least 2 vCPU and 4 GB of RAM, and warns that smaller 2 GB servers need swap space because Strapi's admin build can be killed by memory limits. Further steps cover firewall setup, PostgreSQL configuration, Strapi proxy settings, production builds, and using a read-only API token for the frontend.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in