Cover: a Vercel receipt showing daily charges up to $61, stamped Fixed price, Cloudflare + DigitalOcean

Why We Left Vercel: Cloudflare + DigitalOcean for $75 a Month

by Evgenii Studitskikh
0 comments 18 views 9 minutes read

At the end of October, Vercel charged me about $4.50 a day to run Geo Factbook. On November 26, a single day cost $61. We didn’t get more visitors. We got more bots, and Vercel bills for every request they make.

I have a hard rule for this side project: hosting never goes above $200 a month. At $40–60 a day, I was less than a week away from that line. So in two days we moved the site to a DigitalOcean server with free Cloudflare in front of it. Hosting now costs about $75 a month, and that number no longer depends on traffic.

Here is what happened, why the fixes on Vercel didn’t work, and what the move cost us in ways other than money.

Where we started

Geo Factbook is a site with statistics for 266 countries and territories. The data comes from the UN, the World Bank and other open sources. It has maps, rankings, and country and region comparisons. Under the hood it’s Next.js 15, PostgreSQL and TypeORM.

For a project like this, Vercel was the obvious choice. Push to GitHub, and a couple of minutes later the new version is live. No servers, certificates or CDN to think about. While the site was small, this cost almost nothing: about $4.50 a day, Pro plan included.

The catch is how Vercel bills. On top of the subscription, you pay for usage: requests, function time, bandwidth and ISR cache writes. That’s great when the site is small. Once you have a lot of pages, your bill no longer depends on you. It depends on whoever is crawling them.

What happened

Bar chart: daily Vercel spend rose from $4.50 on Oct 28 to $61 on Nov 26, against a $6.70 per day line for a $200 monthly cap
Vercel billing, selected days, Oct 28 to Nov 28, 2026

In November the site grew fast. We added German, French and Spanish versions, which multiplied the page count by four. Then came regional pages: US states, provinces of China and Canada, regions of the UK, Australia and five EU countries. Add every “country × indicator × year” combination, and we had hundreds of thousands of unique URLs.

The bots showed up right away. The biggest was a headless browser on Alibaba Cloud in Singapore, at about 259,000 requests a day. In Google Analytics it looked like 6,000 “new users” a day from Singapore, each viewing one page for zero seconds. The second was a crawler running real Chrome through residential proxies in Brazil, Mexico, Turkey and Hong Kong. It made roughly one request per second from hundreds of different IPs, so neither our rate limit nor Vercel’s Bot Protection caught it. On top of that came the regular search and AI bots: GoogleOther, OAI-SearchBot and Meta, each at 50,000–70,000 requests a day.

The requests themselves weren’t the expensive part. ISR was. Shortly before, we had moved our dynamic pages to ISR to take load off the database. ISR saves a rendered page to the cache on its first request. A bot visits each long-tail page once, so every visit turned into a paid cache write that nobody ever read. On November 27, ISR Writes were $25.80 of that day’s $42.

What we tried before moving

First we tried to stay on Vercel and fix things in place. Over one week we did this:

  1. Firewall. We blocked Alibaba Cloud’s network and some of the residential proxies. We added a challenge for 17 cloud networks and a per-IP rate limit on long-tail pages. That took load off the database, but the real-Chrome crawler still got through.
  2. A longer cache TTL. Next.js lowers a page’s ISR revalidate interval to the shortest unstable_cache TTL the page reads. Ours was 30 minutes, so every page was rewritten every half hour. We raised it to one day. It didn’t help: bots kept visiting new pages, not old ones.
  3. Fewer deploys. Every deploy on Vercel wipes the ISR cache, and every page gets written again. We moved to a separate develop branch and started shipping to production in batches, once or twice a day.
  4. No ISR on the long tail. Rare pages went back to rendering on every request. The ISR line dropped, and November 28 cost $22.60. But now we paid for function time instead, and the database took every bot request.

Each fix just moved the cost from one line of the invoice to another. The root cause didn’t change: on Vercel, every stranger’s bot costs you money. And you don’t get to decide how much.

Where we moved

Instead of one platform, we now have two pieces. Cloudflare sits in front: DNS, CDN, HTTPS, DDoS and bot protection. The site itself runs on a DigitalOcean server in Frankfurt (fra1). A request goes visitor → Cloudflare → server → database.

  • Cloudflare Free. We carried our bot rules over from Vercel: block Alibaba Cloud and the known crawler, challenge cloud networks, block curl and python user agents, and rate-limit long-tail pages. Search and AI bots get through. Cloudflare charges nothing for requests or bandwidth, even at our million requests a day.
  • A DigitalOcean server with 4 vCPUs and 8 GB of RAM. It runs Docker: the Next.js app in standalone mode, Caddy, and a container for cron jobs. GitHub Actions deploys on every push to main.
  • A server firewall that only lets Cloudflare’s IP ranges reach ports 80 and 443. Nobody can bypass the protection and hit the server directly.
  • The database stayed where it was: managed PostgreSQL on DigitalOcean. The server is in the same data center and talks to it over the private network.
ComponentCost, $/month
DigitalOcean server, 4 vCPU / 8 GB48
Server backups~10
Managed PostgreSQL (we paid for it before too)15
Cloudflare Free0
Total~75

The point isn’t the total. It’s that the total is fixed. A bot that Cloudflare blocks costs $0. A bot that reaches the server also costs $0: it just uses CPU we’ve already paid for. The ISR cache now lives on the server’s disk, and writing to it is free.

And it isn’t slower. The server returns a page in 0.02–0.05 seconds, because it never goes cold like a serverless function and it sits right next to the database. Images, JS and CSS come from the Cloudflare location closest to the visitor.

How the move went

I decided to leave on the evening of November 28, and we switched traffic on the 29th. First we looked at the alternatives:

  • Cloudflare Workers with OpenNext. No: our stack (TypeORM, pg, native image rendering) doesn’t fit within Workers’ limits.
  • Hetzner. No: it raised prices twice in 2026, and our database already lives on DigitalOcean. Server and database are better off in the same private network.
  • Netlify, Railway, Fly. No: same usage-based billing, same bot problem.

We ran the move so that every step could be rolled back in a minute:

  1. Built a Docker image, set up the server and checked that every page type returned 200. Meanwhile the site kept running on Vercel.
  2. Copied every DNS record to Cloudflare, email included, and switched the nameservers. The domain records still pointed at Vercel, so visitors noticed nothing.
  3. Once the zone was active, pointed the records at the server and turned on Cloudflare’s proxy. Rolling back means changing those two records back.
  4. Moved the cron jobs from Vercel to the server. They were enabled on the server only after being disabled on Vercel, so nothing ran twice.

The code changes were small. We now read the visitor’s country from a Cloudflare header instead of a Vercel one. Internal requests go straight to the app container. Cron jobs moved from vercel.json to a plain crontab.

Most of the hands-on work was done by my AI agent, Claude. It wrote the Dockerfile and deploy scripts, configured the server, and moved the DNS and bot rules. I only approved the steps that couldn’t be undone: the nameserver change, the production deploy and the traffic switch.

What we gave up

The move wasn’t free. We just pay in something other than money now.

  • One server. If it goes down, the site is down until we bring it back. That risk didn’t exist on Vercel. Our safety net is backups, plus the option to send traffic back to Vercel with a single DNS change while it’s still around.
  • No autoscaling. A 10x spike could be too much for 4 cores. The server can be resized in a few minutes, but someone has to do it.
  • Ops is on us. OS updates, monitoring, disk space and logs are now my job.
  • Free Cloudflare has a modest firewall. Five custom rules, one rate-limiting rule with a 10-second window, no regular expressions. If smarter bots show up, Pro is $20–25 a month.
  • Some Vercel conveniences are gone: preview deployments and Speed Insights with per-page performance metrics. We now watch speed in Search Console and PostHog.

What I took away

  1. Usage-based pricing works while you bring the traffic. Once your site has hundreds of thousands of pages, bots bring the traffic, and they write the bill.
  2. Read your bill by day and by line item, not the monthly total. The ISR Writes spike was visible on day one. In the monthly total you see it after the money is gone.
  3. ISR doesn’t always save money. If a page is read once, caching it costs money and gives nothing back.
  4. Set a spending cap in advance. Mine is $200 a month. That cap turned “we should move someday” into a decision made in one evening.
  5. Running your own server in 2026 isn’t scary. Docker, Cloudflare and an AI agent take care of most of the manual work. The move took two days, not two weeks.

I don’t think Vercel is bad. For a landing page, a SaaS app behind a login or a small site, I’d pick it again. But for a project with hundreds of thousands of pages that half the bots on the internet are crawling, a fixed price turned out to matter more than convenience.

In a month I’ll share what we actually paid and how the server is holding up against the bots.

If you’re fighting a usage-based bill of your own, or building with AI agents, let’s connect on LinkedIn.

You may also like