Developer moves two Next.js sites from Vercel to a single VPS after usage-limit outage
The author's two websites, devoun.com and a second site, went down with an error page after the hosting provider paused the account for exceeding usage limits. The code itself was fine, but the sites stayed offline until the account was paid up or the limit reset. To avoid that risk, the author migrated both sites in about a day to an existing VPS running Docker. The setup routes traffic through Traefik for HTTPS and redirects, an nginx cache for rendered pages and build files, and standalone Next.js containers. A systemd timer checks the repository every two minutes and redeploys on new commits, leaving the live site untouched if a build fails. The author suggests such self-hosting suits steady traffic and fixed costs, while managed platforms remain better for many teams, especially with spiky traffic.
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