Skip to main content
Guide · For founders

Cloudflare vs AWS for Next.js Hosting: Pricing, Features and Limits (2026)

How hosting a Next.js app on Cloudflare Workers compares with AWS Amplify Hosting and OpenNext on Lambda: billing models from each provider's pricing page, two worked cost scenarios, which Next.js versions and features each supports, and the limits that decide the choice.

Afaq Zahir, author

Afaq Zahir

Flutter mobile product engineer

Published Updated 10 min read

On this page
  1. How does Next.js run on each platform?
  2. What does each platform charge?
  3. How much would an SSR app cost on each?
  4. Which Next.js features work on each?
  5. What limits should you check first?
  6. Which should you choose?
  7. Frequently Asked Questions

Quick answer

On Cloudflare, Next.js runs on Workers through the OpenNext adapter (or Cloudflare's newer vinext, in beta), billed at $5 a month with 10 million requests and 30 million CPU milliseconds included and no bandwidth charges. On AWS, Amplify Hosting bills $0.30 per million requests, $0.20 per GB-hour of server time and $0.15 per GB served, and supports Next.js up to version 15. Cloudflare is usually far cheaper for traffic-heavy SSR; AWS gives a full Node.js server and fewer size limits.

Key takeaways

  • Cloudflare Workers Paid: $5 a month minimum, 10 million requests and 30 million CPU ms included, no egress or bandwidth charges.
  • Workers bill CPU time; Amplify bills request duration in GB-hours, which includes time spent waiting.
  • AWS Amplify Hosting supports Next.js 12 to 15; OpenNext for Cloudflare supports Next.js 15 and 16.
  • A Worker is limited to 3 MiB compressed on the Free plan and 10 MiB on Paid, which large Next.js apps can hit.
  • Amplify does not support Next.js streaming, on-demand ISR or after(); OpenNext on Lambda is the AWS route for those.

Next.js runs best on Vercel, the company that builds it, and this site runs there. But many teams want their web app next to the rest of their infrastructure, on AWS or Cloudflare, usually to cut the bill. This guide compares the two on what they charge, which Next.js features they run and the limits you hit. Prices and feature lists come from each provider's own documentation, read on November 18, 2026.

How does Next.js run on each platform?

CloudflareAWS
Main routeWorkers, via the OpenNext adapter @opennextjs/cloudflare, or Cloudflare's vinext (in beta)Amplify Hosting (managed), or OpenNext on Lambda with SST
RuntimeWorkers with Node.js compatibilityFull Node.js on Lambda
Next.js versionsOpenNext: all Next.js 16 releases and the latest Next.js 15 minorAmplify: Next.js 12 to 15; OpenNext AWS aims at 15 and 16
Billing modelRequests and CPU timeRequests, request duration (GB-hours) and data served

Sources: OpenNext for Cloudflare, Cloudflare's Next.js guide, Amplify Next.js support, OpenNext for AWS. Cloudflare's own guide now recommends vinext as the default and keeps OpenNext for apps that cannot migrate yet, and states that vinext is in beta.

What does each platform charge?

ChargeCloudflare Workers PaidAWS Amplify Hosting
Base$5 a month minimum per accountNone
Requests10 million included, then $0.30 per million$0.30 per million SSR requests
Compute30 million CPU ms included, then $0.02 per million CPU ms$0.20 per GB-hour of request duration
Data servedNo charge for egress or bandwidth$0.15 per GB
BuildsNot on this pricing page$0.01 per build minute
FreeFree plan: 100,000 requests a day, 10 ms CPU per requestFor 12 months: 1,000 build minutes, 500,000 requests, 100 GB-hours and 15 GB served per month

Sources: Cloudflare Workers pricing and AWS Amplify pricing.

The important difference is what "compute" means. Cloudflare bills CPU time: the milliseconds your code is actually running. Amplify bills request duration in GB-hours, which counts the whole time a request is open, including time spent waiting for a database or an API. A server-rendered page that waits 150 ms for data and computes for 20 ms is billed about 20 ms on Workers and about 170 ms on Amplify.

How much would an SSR app cost on each?

Two workloads, priced from the tables above, after the free tiers run out. Amplify bills duration in GB-hours, so the result depends on memory; I assume 1 GB to keep the arithmetic visible, so scale that line to your app.

Workload (per month)Cloudflare Workers PaidAWS Amplify Hosting
5 million SSR requests, 200 ms each (20 ms of it CPU), 200 GB served$6.40$87.06
50 million SSR requests, same profile, 2 TB served$36.40$870.56

How the first row adds up:

  • Workers: $5 base; 5 million requests are inside the 10 million included; 100 million CPU ms minus 30 million included is 70 million at $0.02 per million, $1.40. No data charge.
  • Amplify: $1.50 for requests; 5 million × 0.2 s is about 277.8 hours at 1 GB, $55.56; 200 GB served at $0.15, $30.00.

These are list-price models, not benchmarks, and they leave out what both platforms charge separately, such as image optimisation, databases, caches and logs. Static pages served from cache cost far less on both. But the shape holds: for server-rendered traffic, the duration and data-transfer lines make AWS Amplify an order of magnitude more expensive at this profile.

Which Next.js features work on each?

FeatureCloudflare (OpenNext)AWS Amplify Hosting
App Router and Pages RouterSupportedSupported
SSR, SSG, route handlersSupportedSupported
ISRSupportedSupported, but not on-demand ISR
MiddlewareSupported; Node middleware is experimentalSupported; Edge middleware is not
Image optimisationThrough Cloudflare ImagesSupported (output up to 4.3 MB)
StreamingNot listed on the OpenNext page; test itNot supported
after()SupportedNot supported
Partial PrerenderingSupportedNot listed

Sources: OpenNext for Cloudflare and Amplify's Next.js support page. If you need Next.js 16, streaming or on-demand ISR on AWS, OpenNext on Lambda (maintained by the SST community) is the route rather than Amplify.

What limits should you check first?

  • Worker size (Cloudflare). A Worker can be at most 3 MiB compressed on the Free plan and 10 MiB on the Paid plan (OpenNext). Large apps with heavy server dependencies can exceed it; check your build output early.
  • Runtime (Cloudflare). Use the Node.js runtime, not the Edge runtime; OpenNext notes that the Edge runtime does not support all Next.js features.
  • Maturity (Cloudflare). vinext is in beta, and Cloudflare recommends running its compatibility check before production.
  • Version ceiling (Amplify). Amplify's documentation lists support up to Next.js 15.
  • Cost shape (AWS). Request duration and data out grow with traffic and with slow upstream calls.

Which should you choose?

Choose Cloudflare if your app is mostly pages and API routes on the Node.js runtime, your server bundle fits the Worker limit, and you want a bill that stays small as traffic grows. Pair it with R2 for file storage and egress stays free end to end.

Choose AWS if the rest of your backend is already there, you depend on full Node.js and native modules, or you need the AWS services next to the app. Use Amplify for the simplest managed setup on Next.js 15, and OpenNext with SST when you need Next.js 16 features or more control.

Choose Vercel if you want every Next.js feature on release day without adapters. It is not covered in this comparison.

Frequently Asked Questions

Can Next.js run on Cloudflare Workers?

Yes. The OpenNext adapter supports all Next.js 16 releases and the latest Next.js 15 minor, including the App Router, ISR and middleware. Cloudflare also offers vinext, which is in beta.

Is Cloudflare cheaper than AWS for Next.js?

On list prices, usually yes for server-rendered traffic: Workers bill CPU time and charge nothing for bandwidth, while Amplify bills request duration and $0.15 per GB served.

Does AWS Amplify support Next.js 16?

Amplify's documentation lists support for Next.js versions 12 through 15. For newer versions on AWS, use OpenNext on Lambda.

What is the Cloudflare Worker size limit?

3 MiB compressed on the Workers Free plan and 10 MiB on the Workers Paid plan.

Does Amplify support streaming?

No. Amplify lists Next.js streaming, on-demand ISR and after() among its unsupported features.

Afaq Zahir

Written by

Afaq Zahir

Flutter mobile product engineer with 4+ years shipping 20+ apps to the App Store and Google Play. Led Flutter teams at Metasense and Apptex.

GitHub ↗LinkedIn ↗Last reviewed
Book a call