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?
| Cloudflare | AWS | |
|---|---|---|
| Main route | Workers, via the OpenNext adapter @opennextjs/cloudflare, or Cloudflare's vinext (in beta) | Amplify Hosting (managed), or OpenNext on Lambda with SST |
| Runtime | Workers with Node.js compatibility | Full Node.js on Lambda |
| Next.js versions | OpenNext: all Next.js 16 releases and the latest Next.js 15 minor | Amplify: Next.js 12 to 15; OpenNext AWS aims at 15 and 16 |
| Billing model | Requests and CPU time | Requests, 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?
| Charge | Cloudflare Workers Paid | AWS Amplify Hosting |
|---|---|---|
| Base | $5 a month minimum per account | None |
| Requests | 10 million included, then $0.30 per million | $0.30 per million SSR requests |
| Compute | 30 million CPU ms included, then $0.02 per million CPU ms | $0.20 per GB-hour of request duration |
| Data served | No charge for egress or bandwidth | $0.15 per GB |
| Builds | Not on this pricing page | $0.01 per build minute |
| Free | Free plan: 100,000 requests a day, 10 ms CPU per request | For 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 Paid | AWS 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?
| Feature | Cloudflare (OpenNext) | AWS Amplify Hosting |
|---|---|---|
| App Router and Pages Router | Supported | Supported |
| SSR, SSG, route handlers | Supported | Supported |
| ISR | Supported | Supported, but not on-demand ISR |
| Middleware | Supported; Node middleware is experimental | Supported; Edge middleware is not |
| Image optimisation | Through Cloudflare Images | Supported (output up to 4.3 MB) |
| Streaming | Not listed on the OpenNext page; test it | Not supported |
after() | Supported | Not supported |
| Partial Prerendering | Supported | Not 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.