C.W.K.
Stream
Lesson 07 of 08 · published

Alternatives to Vercel

~18 min · Netlify, Cloudflare Pages, AWS

Level 0Curious
0 XP0/68 lessons0/11 achievements
0/120 XP to next level120 XP to go0% complete

Where Next.js runs well

PlatformSSRISREdgeEffort
Vercel✅ (global CDN)Zero-config
Netlify✅ (DPR)Easy
AWS AmplifyLimitedMedium
Cloudflare PagesLimitedMedium
Railway / Fly.ioEasy
Docker on any cloudManual

Trade-offs of leaving Vercel

  • ISR cache lives in one region rather than globally.
  • Image optimization needs sharp or a custom loader.
  • No automatic preview URLs — you set up your own staging environment.
  • SSL, scaling, observability all become your problem.

Code

Cloudflare Pages adapter·bash
# Cloudflare Pages requires the @cloudflare/next-on-pages adapter
npm install --save-dev @cloudflare/next-on-pages

# In package.json
"build": "npx @cloudflare/next-on-pages"

# Some Node-specific APIs are unavailable on Cloudflare's Workers runtime —
# check the adapter's compatibility matrix before adopting.

External links

Exercise

Pick one alternative platform. Deploy a small Next.js app to it (read the platform docs). Note which Next.js features changed behavior (image optimization, ISR distribution, env var loading).

Progress

Progress is local-only — sign in to sync across devices.
Spotted a bug or have feedback on this page?Report an Issue

Comments 0

🔔 Reply notifications (sign in)
Sign inPlease sign in to comment.

No comments yet — be the first.