Skip to main content

I hit Vercel's deploy limit one too many times, so I moved five sites to Cloudflare in one night

Why I moved my static sites from Vercel Hobby to Cloudflare Workers, what it got me, and the things that broke along the way.

Updated 5 min readMarkdown

I run a lot of small projects at once: my portfolio, my resume, the Stockd landing page, the ByteBuilders Lab site, Formivo (my 3D-printing shop), and a few more. Almost all of them lived on Vercel's free Hobby plan. It's a great developer experience, until you start hitting the limits.

The limit I kept hitting was 100 deployments a day.

How I hit the limit

With one site, 100 deploys a day sounds like a lot. Mine weren't one site:

  • Renovate opens dependency PRs across every repo, and each one got a preview deploy.
  • My Stockd monorepo fans out to three Vercel projects on every push.
  • I ship in small PRs, often with an AI coding agent doing the grunt work, so pushes add up fast.

At first I tried to make the setup leaner rather than leave. On Nov 13 I made Vercel skip builds for apps a push didn't touch. On Nov 18 I stopped Vercel previews for Renovate branches and batched updates weekly in three repos. It helped, but I was tuning my workflow around a quota, not my product.

That same evening I started moving sites to Cloudflare.

What I moved (and what I didn't)

Between about 22:00 and 01:00 that night I moved:

  • My portfolio (Astro): from @astrojs/vercel to @astrojs/cloudflare.
  • My resume (Next.js): it became a static export.
  • The ByteBuilders Lab landing page (Next.js): it became a static export, plus a tiny Worker.
  • The Stockd marketing site (Vite): served as static assets.
  • One more project's marketing site: same pattern.

Then I swapped Vercel Web Analytics for Cloudflare Web Analytics on four of them.

I didn't move everything. Stockd's server and web app stay on Vercel for now. This was never about "Vercel bad". It was about putting each thing where it fits.

The benefits

1. Static assets are free and unlimited. Most of my pages are prerendered anyway. On Cloudflare Workers, static assets cost nothing and have no request cap, so the deploy-quota anxiety is simply gone.

2. You only pay (in compute) for what actually runs. My portfolio has exactly three small API routes: subscribe, confirm and feedback. Everything else is static. Only /api/* runs in the Worker, and the free plan gives 100k Worker requests a day, far more than I need.

3. A Worker can replace a server for tiny jobs. On ByteBuilders Lab, the only dynamic things were the / language redirect and /sitemap.xml. The redirect is now a few lines in a Worker that runs only for /. It reads Accept-Language and sends you to /de or /en, which matters for a bilingual Swiss site. The sitemap is generated at build time. The rest is plain static files.

4. Cookieless analytics for free. Once a site leaves Vercel, @vercel/analytics records nothing. Its script 404s and track() does nothing. Cloudflare Web Analytics is cookieless and free. For Swiss sites under the nDSG (the Swiss data protection act), fewer cookies means less consent hassle and simpler privacy copy.

5. Less vendor-specific config. Headers moved from vercel.json into a plain public/_headers file, and the deploy config sits in wrangler.jsonc in the repo. Moving it all forced me to clean up things I'd half-forgotten.

What broke (the honest part)

This is the part generic migration guides skip.

  • Env vars compiled to undefined. The Cloudflare Astro build inlines import.meta.env at build time, so my secret reads silently vanished. The fix was to read process.env.* at request time; Workers fills it from secrets under nodejs_compat.
  • A Worker has no filesystem. My portfolio serves gated PDF guides after email confirmation. On Vercel I read them from disk. Now the build copies them into static assets, a route blocks direct access with a 404, and the confirm endpoint reads them through the ASSETS binding.
  • A native binary wouldn't load on Cloudflare's build machines. @swc/core failed its cache check there, so I swapped @vitejs/plugin-react-swc for the Babel-based @vitejs/plugin-react. Same output, no native addon.
  • Monorepos need care. Today I'm still fixing a deploy that failed because wrangler deploy ran from the monorepo root, which had no Wrangler config. Two small PRs later it deploys, and I can redeploy by hand from GitHub Actions.
  • No preview filters for Renovate. Cloudflare's branch filters can't exclude renovate/*, so I run production builds on main only and let GitHub Actions build every PR.
  • Migrating surfaced an old bug. One signing secret had never been set on Vercel, which means subscription confirmations on my portfolio couldn't have worked there. Moving made me check every secret, and that's how I found it.

Would I do it again?

Yes, for anything that's mostly static. My rule now:

  • Prerendered sites and marketing pages: Cloudflare Workers static assets, with a Worker only for the few routes that need one.
  • Real app backends: stay where they run best today, and get re-evaluated one by one.

If you're an indie hacker running many small projects on one free account, check how many deploys you really make in a day. If you keep hitting the limit, that's a sign to move.

No comments yet. Be the first to comment.