Home / Insights / Architecture and Modernization

Architecture and Modernization

Vercel vs AWS for a Next.js Product: Cost at Scale, Control and Migration Paths

Vercel is the path of least resistance for Next.js; AWS is where most companies’ data, networks and budgets already live. This comparison uses published prices, a worked estimate and the feature-support facts from the Next.js documentation to help you choose, and to keep the option to change your mind.

TopicsArchitecture and ModernizationWeb and SaaS Development

Key takeaways

  • Next.js runs with full feature support on a Node.js server or Docker container anywhere, so the hosting decision is about operations, cost structure and integration, not about whether the framework will work.
  • Vercel’s pricing is seat-based plus usage; AWS pricing is pure usage. At small scale Vercel usually costs less than the engineering time AWS requires; at large scale the comparison turns on egress, seats and how much platform work you are willing to own.
  • On AWS you have three realistic routes for Next.js: Amplify Hosting (managed, Vercel-like), Lambda and CloudFront via OpenNext (serverless, community-maintained), or containers on ECS or EKS (full control, most operational work).
  • Multi-instance self-hosting has specific requirements that the Next.js docs spell out: a shared cache handler for ISR, a consistent build ID and encryption key, a deployment ID for version skew, and streaming support through every proxy.
  • Design for portability from day one: keep platform-specific features behind thin adapters, use standard environment variables, and keep infrastructure in code. A migration either way then takes weeks, not quarters.

Every Next.js project reaches the same question at some point, often after a surprising bill or a security review: should this run on Vercel, or on our AWS account? The debate is often framed as developer convenience against enterprise control, which is unhelpful because both sides are partly right. Vercel made Next.js, its platform is the reference implementation of the framework’s deployment model, and it removes a category of operational work. AWS is where the rest of your systems, your VPCs, your IAM policies and your committed spend probably already are.

This article is for CTOs, architects and engineering leads making or revisiting that decision for a production Next.js product. It covers what the Next.js documentation says about hosting options and feature support, how Vercel and the main AWS routes are priced, a worked cost estimate built from published list prices with every assumption stated, the control and compliance differences, and how to migrate in either direction without a rewrite. We build and host Next.js products on both, and the honest answer is that each wins in clearly identifiable situations. If you need engineers who have done both, our Next.js developers work on server components, API routes, Vercel deployments and migrations of existing React applications.

What Next.js itself supports, and where the platform matters

Start with the facts from the framework, because they remove a common misconception. The Next.js deployment documentation states that a Node.js server deployment and a Docker container deployment support all Next.js features, a static export supports a limited set, and adapters vary, with verified adapters (currently Vercel and Bun) running the full Next.js compatibility test suite. AWS Amplify Hosting, Cloudflare and Netlify are listed as platforms with their own integrations that are not built on the public Adapter API and are not verified by the Next.js team, so feature support may vary.

The practical reading is:

  • If you run Next.js as a long-lived Node.js process or container on AWS, you get everything the framework offers. The platform work is yours.
  • If you run it on Vercel, you get a verified adapter and the platform work is theirs.
  • If you run it on a serverless adaptation on AWS (Amplify’s integration or the community OpenNext project), you are trusting a translation layer that is not verified by the framework team, and you should check the feature list against your application.

The self-hosting responsibilities

The Next.js self-hosting guide is specific about what you take on when running multiple instances behind a load balancer, which is the normal production shape on AWS:

ConcernWhat the Next.js docs sayWhat it means operationally
ISR and data cacheStored on each instance’s local disk by default; configure a cache handler backed by shared storage such as Redis or S3 for multiple instancesYou need a shared cache service, a serialisation-aware handler and tag indexing so revalidation on one instance reaches all
Build identityUse a consistent build ID across containers; set a deployment ID to detect version skew during rolling deploysYour pipeline must build once and promote, and your proxy or CDN must not mix assets from two deployments
Server function encryptionAll instances must share the same encryption key for Server FunctionsOne more secret to manage consistently across environments
StreamingReverse proxies and load balancers must not buffer; the docs note that an AWS ALB with Lambda integration may buffer by defaultStreaming and Partial Prerendering need end-to-end checks, not assumptions
Image optimisationWorks with zero configuration under next start; may need memory-allocator configuration on glibc LinuxBudget CPU and memory for image work or offload it to a loader
Reverse proxyRecommended in front of the Next.js server for malformed requests, slow connections, payload limits and rate limitingNginx, ALB rules or a WAF are part of the design

None of this is difficult for a team that runs services on AWS already. All of it is work that Vercel’s platform does for you, which is the heart of the trade-off. Our earlier guide to Next.js performance and caching covers the caching model in more depth; the cache handler requirements above are the self-hosted consequence of that model.

The four realistic options and what each is for

Treat ‘AWS’ as three distinct options rather than one. They differ more from each other than Vercel differs from the closest of them.

Option 1: Vercel

A managed platform with preview deployments per branch, a global CDN, serverless functions for server rendering, image optimisation and observability, integrated with Git. At the time of writing, Vercel’s pricing page lists Hobby at USD 0, Pro at USD 20 per developer seat per month with USD 20 of included usage credit and pay-as-you-go usage above it, and Enterprise at custom pricing. Usage-based lines on Pro include function invocations (starting at USD 0.60 per million), Fluid active CPU (starting at USD 0.128 per hour), provisioned memory (starting at USD 0.0106 per GB-hour) and image optimisation transformations (starting at USD 0.05 per thousand). The page describes an optional Flat Rate CDN for Pro covering CDN requests and data transfer at a fixed monthly price, but does not publish that price or a Pro overage rate for data transfer.

Option 2: AWS Amplify Hosting

AWS’s managed front-end hosting, with Git-connected builds, a CDN and server-side rendering support for Next.js through Amplify’s own integration. The Amplify pricing page lists, outside the free tier, USD 0.01 per standard build minute, USD 0.023 per GB-month of CDN storage, USD 0.15 per GB of data transfer out, USD 0.30 per million SSR requests and USD 0.20 per GB-hour of SSR duration. It is the closest AWS equivalent to Vercel’s experience, inside your AWS account, with the caveat from the Next.js docs that its integration is not a verified adapter.

Option 3: Lambda and CloudFront via OpenNext

OpenNext for AWS is an open-source project maintained by the SST community that converts the Next.js build output into deployable packages for AWS Lambda (including Lambda@Edge) and Amazon ECS. Its documentation lists support for the App and Pages routers, API routes, SSG, SSR, ISR, middleware, image optimisation and a warmer to avoid cold starts, and it aims to support all Next.js 15 features, while noting that some features are still in progress and Windows builds are not guaranteed. Pricing is plain AWS: Lambda at USD 0.20 per million requests and USD 0.0000166667 per GB-second for x86 in US East, and CloudFront with the first 1 TB of data transfer out per month free and the next 9 TB at USD 0.085 per GB in the US and Europe, plus USD 0.01 per 10,000 HTTPS requests in the US.

Option 4: Containers on ECS or EKS

Run the Next.js Node.js server in a container behind an Application Load Balancer and CloudFront, with Redis for the shared cache. This is the option with full framework feature support and full control, and the one with the most operational work: autoscaling, health checks, rolling deploys with version-skew protection, patching and capacity planning. Pricing is compute you choose (Fargate or EC2) plus the same CloudFront egress.

CriterionVercelAmplify HostingLambda via OpenNextContainers (ECS/EKS)
Next.js feature supportVerified adapterOwn integration, not verifiedCommunity adaptation, broad but not verifiedAll features (Node.js server)
Operational workMinimalLowMedium; you own the IaC and the adapter upgrade pathHigh
Preview deploymentsBuilt inBuilt in (branch deploys)Build it yourselfBuild it yourself
Private network access (VPC)Via secure connectivity add-ons or public endpointsLimitedLambda in VPC: yesNative
Pricing modelSeats plus usageUsageUsageCapacity plus usage
Egress list priceNot published for Pro overageUSD 0.15 per GBCloudFront: 1 TB free, then USD 0.085 per GBSame as Lambda route
Lock-inLow for the app; higher for platform features (KV, blob, cron, analytics) if adoptedLow to mediumMedium (adapter and IaC)Low

Cost at scale: a worked estimate with the assumptions shown

Hosting bills are dominated by four things: seats, server-render compute, egress and builds. The estimate below is illustrative. It uses the list prices quoted above, ignores free tiers, taxes, support plans and committed-use discounts, and applies one traffic profile. Change the profile and the ranking can change, which is the point: run your own numbers.

The illustrative profile

  • A B2B SaaS front end with 5 million server-rendered requests per month.
  • Average render of 200 ms wall time at 1 GB memory, of which 50 ms is active CPU.
  • 20 million CDN requests per month including static assets; 500 GB data transfer out.
  • 300 build minutes per month; three developers needing deploy access.
LineVercel ProAmplify HostingLambda and CloudFront (OpenNext)
Seats3 x USD 20 = USD 60 (includes USD 20 usage credit)USD 0USD 0
Server-render requests5M x USD 0.60/M = USD 3.005M x USD 0.30/M = USD 1.505M x USD 0.20/M = USD 1.00
Server-render computeActive CPU 69.4 h x USD 0.128 = USD 8.89; memory 277.8 GB-h x USD 0.0106 = USD 2.94277.8 GB-h x USD 0.20 = USD 55.561,000,000 GB-s x USD 0.0000166667 = USD 16.67
CDN requestsNot published for Pro overageIncluded in request pricing20M x USD 0.01 per 10k = USD 20.00
Data transfer outNot published for Pro overage; Flat Rate CDN price on request500 GB x USD 0.15 = USD 75.00USD 0 (within the first free TB)
BuildsIncluded in plan for this volume (assumption)300 x USD 0.01 = USD 3.00Your CI minutes (assume USD 5)
Supporting servicesNone neededStorage 5 GB x USD 0.023 = USD 0.12S3, DynamoDB, SQS for the adapter (assume USD 5)
Estimated monthly totalAbout USD 55 plus data transfer, after the creditAbout USD 135About USD 48

Three observations follow, and they hold across most profiles we have modelled:

  1. At this scale every option is cheap compared with engineering time. The difference between the columns is less than a day of a senior engineer’s cost in most markets. Choosing AWS to save USD 80 a month and then spending two weeks on infrastructure is a false economy; choosing Vercel and then spending two weeks working around a missing VPC path is the same mistake in reverse.
  2. Egress is the line that scales badly. Multiply the data transfer by twenty for a media-heavy consumer product and Amplify’s USD 0.15 per GB becomes the largest line, CloudFront’s USD 0.085 per GB after the free terabyte is roughly half of it, and Vercel’s cost depends on a Flat Rate CDN or Enterprise agreement you must negotiate. Ask Vercel for the number before you assume.
  3. Seats scale with the team, not the traffic. A 25-person engineering organisation on Vercel Pro pays for 25 developer seats regardless of load, which is where Enterprise conversations begin. On AWS, IAM users are free; the cost is the platform engineer who manages them.

Action: rebuild this table with your own request counts, render times and egress for the next twelve months, and add a line for the people-hours each option requires. The people line usually decides it.

Control, compliance and integration: where AWS wins and where it does not

Cost is rarely the deciding factor for the companies that end up on AWS. Control is. Four situations push a Next.js product onto your own cloud account.

Private network access

If the Next.js server must call databases, internal APIs or legacy systems that are only reachable inside a VPC, Lambda in a VPC or containers on ECS reach them natively. On Vercel you would expose those systems through a secured public endpoint or use Vercel’s connectivity features, each of which is a security review in itself.

Data residency and regulatory scope

If your compliance programme already covers your AWS account (for example, your ISO 27001 or SOC 2 scope, your data processing agreements, your region pinning), adding another processor with its own regions, sub-processors and audit cadence is a cost that does not appear on any pricing page. Some regulated clients simply will not add one. Others are fine with Vercel’s enterprise terms. Find out before you architect.

Committed spend and procurement

Companies with AWS enterprise agreements, credits or committed-use discounts often prefer to put everything on the bill they have already negotiated. That is a legitimate reason, and it is a financial one rather than a technical one.

Platform features you would otherwise build

Where Vercel wins is everything that is not the application: preview URLs on every pull request, instant rollbacks, built-in observability, image optimisation at the edge, skew protection and a verified adapter that the Next.js team tests before major releases. If your team is five engineers shipping a product, those are features you would otherwise build or go without, and ‘go without’ has a cost in bugs and slower reviews.

An honest decision guide

Your situationUsually the better choiceWhy
Small team, public product, no VPC dependencies, speed matters mostVercelLowest operational load; verified Next.js support; preview workflow out of the box
Marketing or content site in front of a bigger AWS estateVercel or AmplifyEither works; Amplify keeps billing and IAM in one place, Vercel gives a better editorial preview workflow
Application must reach private services inside a VPCAWS (Lambda via OpenNext, or containers)Native network path; no public exposure of internal systems
Regulated workload with an existing AWS compliance scopeAWSNo new processor; existing controls apply
High egress (media, downloads, large payloads)AWS with CloudFront, or Vercel Enterprise with negotiated CDN pricingEgress list prices dominate; negotiate or use the cheaper published rate
Large engineering organisation with many deployersAWS, or Vercel EnterpriseSeat costs scale with headcount; evaluate both at the negotiated level
Heavy use of Partial Prerendering, streaming and the newest framework featuresVercel, or containers with careful proxy configurationVerified adapter versus the streaming caveats the docs raise for some AWS load balancer configurations

If your Next.js front end is one part of a broader platform with queues, events and integrations, the hosting choice should follow the platform’s architecture rather than lead it; our article on cloud architecture for logistics platforms shows how the front end fits into that wider picture.

Migration paths in both directions

The good news is that a well-built Next.js application is portable. The framework’s own deployment model (build output, Node.js server, standard environment variables) is the contract. Migrations go wrong when the application has absorbed platform-specific services or when nobody planned for the self-hosting responsibilities listed earlier.

Vercel to AWS

  1. Inventory platform dependencies. List every use of Vercel-specific services: KV, blob storage, cron, edge config, analytics, the image optimisation defaults and any environment variables that only exist on Vercel. Each needs an AWS equivalent or a thin adapter.
  2. Choose the AWS route using the decision guide: Amplify for a Vercel-like experience, OpenNext for serverless with VPC access, containers for full control.
  3. Implement the self-hosting requirements. Shared cache handler (Redis or S3), consistent build ID, Server Functions encryption key, deployment ID for skew protection, and a streaming-safe proxy chain. Test ISR revalidation across two instances before go-live; it is the most common post-migration bug.
  4. Rebuild the preview workflow. Per-branch environments are the Vercel feature teams miss most. Amplify offers branch deploys; for OpenNext or containers, script an ephemeral stack per pull request in your infrastructure-as-code.
  5. Run both in parallel with DNS weighting or a header-based split for at least one release cycle, compare error rates and p95 latency, then cut over.

AWS to Vercel

  1. Remove hard dependencies on the VPC. Anything the Next.js server calls must be reachable from Vercel’s functions securely: an API gateway with authentication, a private link product, or a backend-for-frontend you keep on AWS.
  2. Replace custom infrastructure with platform features. Delete the cache handler, the nginx configuration and the skew-protection plumbing; the verified adapter handles them.
  3. Move secrets and environment variables into Vercel’s environment configuration, and review the build-time versus runtime distinction the Next.js docs describe for NEXT_PUBLIC_ variables.
  4. Confirm the commercial terms for seats, data transfer and any enterprise requirements before the engineering starts, not after.

Designing for portability from the start

  • Keep platform services behind interfaces: a cache, blob or queue module with one implementation per platform.
  • Keep infrastructure in code (Terraform, CDK or SST) even on Vercel, where the ‘infrastructure’ is project configuration and environment variables.
  • Run the Docker build in CI from day one, even if you deploy to Vercel. If the container starts and serves the test suite, you have a proven exit.
  • Record the decision and its triggers for review: ‘we will revisit when egress exceeds X, seats exceed Y, or a VPC dependency appears’.

Illustratively, a 15-person fintech team that started on Vercel might hit the VPC trigger when it adds a core-banking integration, move the Next.js front end to containers on ECS over about four to six weeks using the steps above, and keep Vercel for its marketing site. The figures are an assumption, but the shape of that split is common.

How to decide: a short process

We run this as a one-week exercise with clients who are choosing or re-choosing. It produces a documented decision rather than a preference.

  1. Write the constraints first. Private network dependencies, data residency, compliance scope, procurement rules and the number of people who need to deploy. Any hard constraint usually decides the question on its own.
  2. Model twelve months of usage. Requests, render time, egress, builds, seats. Build the cost table above for each option with list prices, then request the unpublished numbers (Vercel data transfer, Enterprise terms, AWS discounts).
  3. Price the people. Estimate hours per month for platform work on each option. Be honest about whether you have someone who enjoys this work; if not, that is a cost too.
  4. Test the risky feature. If you rely on streaming, PPR, ISR with frequent revalidation or image-heavy pages, deploy a thin slice to the shortlisted options and measure. The Next.js docs’ caveats about buffering and per-instance caches are real and cheap to verify.
  5. Decide, document and set the review triggers. Include the migration path in the decision record so that the next person does not start from zero.

If you need engineers to run that exercise or to execute a migration, the Next.js developers we place work with server rendering and static generation, API routes, Vercel deployments and monitoring set-up, and migrations of existing React applications, as a scoped project or as part of a dedicated team. For the skills to look for when hiring in-house, see our note on hiring Next.js developers for production apps.

Checklist before you commit to a platform

  • Hard constraints written down: VPC access, residency, compliance scope, procurement, deployer headcount.
  • Twelve-month usage model with requests, render time, egress, builds and seats.
  • Cost table built from published list prices for each option, with unpublished rates requested in writing.
  • People-hours per month estimated for platform work on each option.
  • Risky features (streaming, PPR, ISR, image optimisation) tested on a thin slice, not assumed.
  • For AWS routes: shared cache handler, consistent build ID, encryption key, deployment ID and streaming-safe proxies designed and tested across two instances.
  • For Vercel: platform services inventoried and isolated behind interfaces; Docker build in CI as the proven exit.
  • Preview deployment workflow confirmed for the chosen option.
  • Decision record written with review triggers and the migration path in both directions.

Either platform can run a serious Next.js product well. The teams that regret their choice are the ones that made it on a default rather than on their own constraints and numbers.

Frequently asked questions

Is Next.js worse on AWS than on Vercel?

No. The Next.js documentation states that Node.js server and Docker deployments support all framework features. What differs is who does the platform work: on Vercel the verified adapter handles caching, skew protection and image optimisation; on AWS you configure a shared cache handler, build identity and a streaming-safe proxy chain yourself, or rely on Amplify’s or OpenNext’s integration, which the Next.js team does not verify.

Which is cheaper, Vercel or AWS, for a Next.js app?

It depends on seats, egress and engineering time. In our illustrative estimate for a modest B2B workload, all options landed within a narrow range once list prices were applied, with Amplify’s egress rate the largest single line and Vercel’s data-transfer rate unpublished for Pro. At high egress or high headcount, negotiated enterprise terms on either side decide it. Model your own twelve months rather than relying on anyone’s generic answer.

What is OpenNext and should we rely on it?

OpenNext for AWS is an open-source project maintained by the SST community that converts the Next.js build into packages for Lambda and ECS, with broad feature support and a warmer for cold starts. It is widely used, but it is not a verified adapter in the Next.js team’s sense, so test your application’s features against it and plan for upgrades when new Next.js versions ship.

Can we move from Vercel to AWS later without rewriting?

Usually yes, if you have kept platform-specific services behind interfaces and can build a Docker image that serves the application. The work is in the self-hosting requirements: shared cache, build and deployment identity, encryption key, proxies and a preview workflow. We have seen migrations take weeks rather than quarters when the application was built portably.

Does Amplify Hosting support everything Vercel does for Next.js?

Amplify supports server-side rendering for Next.js through its own integration and offers branch deployments and a CDN. The Next.js docs list it among platforms with their own integrations, not built on the public Adapter API and not verified by the Next.js team, so check specific features such as streaming, ISR revalidation and image optimisation against Amplify’s documentation for your Next.js version.

We are a regulated company with an AWS compliance scope. Is Vercel ruled out?

Not automatically. Some regulated organisations accept Vercel under enterprise terms; others will not add a processor outside their existing scope. The right step is to ask your compliance owner before the architecture is drawn, and to price the cost of extending the scope against the operational cost of self-hosting.

Sources and methodology

Guidance reflects PoliteTech delivery experience. The external references below informed specific points in this article.

  1. Next.js documentation: Deploying — accessed 10 November 2026. Feature support by deployment option (Node.js server and Docker: all features; static export: limited; adapters: varies), the verified adapters, and the list of platforms with their own unverified integrations including AWS Amplify Hosting.
  2. Next.js documentation: How to self-host your Next.js application — accessed 10 November 2026. Self-hosting requirements: shared cache handler for ISR across instances, consistent build ID and deployment ID, Server Functions encryption key, streaming and proxy buffering caveats, image optimisation and reverse proxy guidance.
  3. Vercel: Pricing — accessed 10 November 2026. Hobby, Pro (USD 20 per seat with USD 20 usage credit) and Enterprise plans, usage-based rates for function invocations, active CPU, provisioned memory and image optimisation, and the Flat Rate CDN option without a published price.
  4. AWS Amplify: Pricing — accessed 10 November 2026. Amplify Hosting rates for build minutes, CDN storage, data transfer out, SSR requests and SSR duration.
  5. AWS Lambda: Pricing — accessed 10 November 2026. Per-request and per-GB-second compute pricing for x86 in US East used in the worked estimate.
  6. Amazon CloudFront: Pay-as-you-go pricing — accessed 10 November 2026. Data transfer out to the internet (first 1 TB free, next 9 TB at USD 0.085 per GB) and HTTPS request pricing in the US and Europe.

Deciding where your Next.js product should run?

We can model your usage and constraints, test the risky features on both platforms, and run the migration either way with engineers who have done it before.