Vercel vs Cloudflare Pages — My Real Migration Experience (Dynamic to Static Edge)

October 7, 2025
3 min read
Vercel vs Cloudflare Pages — My Real Migration Experience (Dynamic to Static Edge)

🚀 Why I Switched from Vercel to Cloudflare Pages

I’ve been using Vercel for a long time to host my Next.js dynamic projects. It’s a powerful platform with excellent developer tools, easy integration, and fast deployment.

But here’s the catch — serverless costs can grow unexpectedly, and the free plan limits are tighter when your traffic scales.

Recently, I migrated my projects from Vercel to Cloudflare Pages, mainly for cost-effectiveness, performance, and simplicity. If you mostly serve static or semi-dynamic content, Cloudflare’s ecosystem just makes sense.


💡 The Core Reason: Serverless Without Credit Card Anxiety

In the serverless world, you never know how your bill might grow — edge functions, bandwidth, cold starts… all add up.

But Cloudflare Pages changes that.

  • ✅ Unlimited bandwidth
  • ✅ Unlimited visits
  • ✅ Built-in CDN edge caching (worldwide)
  • ✅ Free D1 database (SQLite-based)
  • ✅ Automatic SSL + Cache + Firewall

Basically, it gives you the global power of a CDN + serverless edge — with no surprise billing.

That’s what I needed — edge hosting without worrying about unexpected credit card charges.


🧠 My Tech Stack Comparison

FeatureVercelCloudflare Pages
Framework UsedNext.jsHugo
DatabaseSQLite (Vercel + D1 test)D1 (Cloudflare SQLite)
Server TypeServerless FunctionsEdge Functions
Language/RuntimeNode.jsWorkers Runtime
Deployment ToolVercel CLI / GitWrangler CLI
CostFree tier limited, scales fastPractically free for static + D1
PerformanceFast, but depends on function cold startsGlobal CDN edge cache, super fast
Build SpeedModerate (Next.js heavy builds)Extremely fast (Hugo static builds)
Bandwidth LimitLimitedUnlimited

🧩 My Workflow Migration

When I decided to move from Vercel → Cloudflare Pages, here’s what I did technically:

  1. Extracted SQL Data
    From my D1 SQLite database on Cloudflare (previously Next.js API).
  2. Converted SQL → Markdown
    Using a custom Node.js script, I converted my data into .md files compatible with Hugo.
  3. Rebuilt Site with Hugo
    Hugo is insanely fast — it builds static files in seconds. This means no runtime cost, no cold starts, no API load.
  4. Deployed with Wrangler CLI
    wrangler pages deploy ./public — done. My Hugo-generated static site was live instantly on Cloudflare’s global edge network.

🌍 The Result

olimiah.pages.dev → lightning fast, fully static, globally cached
olimiah.vercel.app → still dynamic, but slower under load and limited in free usage

Performance-wise, Cloudflare Pages wins for my kind of projects. And financially, it’s unbeatable — no hidden costs, no billing surprises, no bandwidth limits.


⚖️ Final Verdict

If your site:

  • doesn’t require heavy real-time dynamic content
  • can be statically pre-rendered or cached at the edge
  • and you want freedom from surprise bills

👉 Then Cloudflare Pages is the smarter choice in 2025.

But if you’re running complex React SSR apps or APIs that need dynamic rendering — Vercel still holds the edge (pun intended).


🔗 Useful Links


💬 My Takeaway

Cloudflare Pages is not just a “free alternative” — it’s a powerful edge-first platform that makes static and hybrid sites incredibly efficient.

And for solo devs, students, or freelancers like me who care about speed, simplicity, and zero-cost scaling — it’s absolutely worth it.

Recent Articles

The AI Hype Is Hitting a Wall Now

November 12, 2025

I’ve been hearing the narrative for two years. Everyone thinks AI is coming for all the jobs, starting with programming. But I am a developer, and from where I stand, the hype is settling down. …

Don't Call AI "The Future" Until You Know This

November 12, 2025

The market is currently overflowing with hype about Artificial Intelligence. You hear it everywhere: AI is the new revolution, the new internet, the new electricity. Alongside this hype, there’s …

Why I Chose Cloudflare Pages Over a VPS: The Best "True Free Host" for Static Sites

November 10, 2025

As a web developer who has built everything from small portfolios to complex agency sites, I’ve spent years navigating the hosting landscape. The debate between traditional hosting and modern …

Next.js Deployments: Vercel vs Cloudflare Stack (OpenNext, Workers, R2, D1)

November 9, 2025

Next.js Deployment: Vercel’s Walled Garden vs. The Cloudflare Superstack As a developer, I love Next.js. It’s a powerhouse. And naturally, the “easy button” for deployment is …

Deploy Your Hugo + Tailwind v4 Website to Cloudflare Pages Automatically with GitHub Actions

November 1, 2025

This guide shows how to automatically deploy a Hugo + Tailwind CSS site to Cloudflare Pages every time you push code to your GitHub repository. It’s written for beginners — no advanced DevOps …

How I Optimized Core Web Vitals to 100% on My HugoGo Website

October 31, 2025

Optimizing a HugoGo website to achieve a perfect 100% Core Web Vitals score is completely possible without major code rewrites. Hugo’s static site generation already gives a strong base — with server …