KHUFU
OffersWorkMethodBlogAbout
Book a sprint

Blog

Hosting a SaaS: Vercel vs Cloud Run — when to choose which

Vercel for the Next.js front-end, Cloud Run for the NestJS API: costs, scaling and use cases to pick the right hosting infra for your SaaS.

6 min read

To host a modern SaaS, the combination that wins most often is Vercel for the Next.js front-end and Cloud Run for the NestJS API. Vercel deploys your front-end to a global edge network with zero config; Cloud Run runs your back-end in a container, with scale-to-zero and full control over the runtime. The rest comes down to cost, load and the type of product. Here is how to decide.

Vercel: the Next.js front-end without friction

Vercel is the platform built by the creators of Next.js. A git push is enough: build, deployment, global CDN, HTTPS, per-branch previews and instant rollback are all included. For a React/Next.js front-end, there is nothing to administer.

  • •SSR, ISR and edge functions handled natively, as close as possible to the user.
  • •Preview deployments on every pull request: you test before you merge.
  • •Ideal for marketing sites, dashboards and the front-end of a SaaS.
  • •Limit: server execution is designed for short functions, not for a heavy back-end or long-running tasks.

Cloud Run: the API and the heavy lifting

Cloud Run (Google Cloud) runs any Docker container and exposes it over HTTPS. It is the natural home for a NestJS API, a PostgreSQL connection through Prisma, jobs, webhooks or AI processing that takes several seconds. You keep control over the runtime, memory and CPU.

  • •Scale-to-zero: no active container, no bill when nobody calls the API.
  • •Automatic scale-up to thousands of instances during a spike.
  • •Requests up to 60 minutes: perfect for long jobs and AI.
  • •No hard lock-in: a standard container redeploys elsewhere without a rewrite.

Costs: what you really pay

Both platforms have a generous free tier and bill on usage. Concretely, for a SaaS getting started:

  • •Vercel: free for a personal project, then ~$20/month per member on the Pro plan. The bill rises with bandwidth and function execution.
  • •Cloud Run: billed per request, CPU and memory consumed. A low-traffic back-end often costs a few euros a month thanks to scale-to-zero.
  • •Simple rule: while traffic is low, the two combined stay under €50/month. It grows in proportion to usage, not in surprise tiers.
The right question is not “which platform is cheapest”, but “which one lets you ship and scale without thinking about it”.

Scaling: cold and hot

Vercel absorbs front-end traffic spikes with no configuration: the CDN serves static content and functions scale automatically. Cloud Run delivers the same elasticity on the back-end, but adds a cold start (the time to wake a sleeping container) — a few hundred milliseconds, reducible by keeping a minimum warm instance for a small extra cost.

When to choose which

  • •Next.js front-end, marketing site, dashboard: Vercel, no hesitation.
  • •Business API, database, webhooks, AI, long tasks: Cloud Run.
  • •Full SaaS: both, each on its own turf — this is the stack we deploy by default at Khufu.
  • •Ultra-simple product with no real back-end: Vercel alone can be enough at first.

At Khufu, this Vercel + Cloud Run architecture is the one we ship in our V1s delivered in 7 days for €15,000: a fast front-end, an API that scales, and a hosting bill that stays aligned with your real traffic.

Your V1, in production by Friday.

Tell us what you want to launch. We reply within 24h with a scope and a date.

Book a sprint
← All articles

Related reading

StackTech

Our stack for shipping a SaaS in one week

Khufu's stack in detail — Next.js, NestJS, Prisma, PostgreSQL, managed cloud — and why every layer serves both speed AND maintainability.

6 min read
Next.jsTech

Why we choose Next.js for (almost) every project

The concrete reasons behind our Next.js default: App Router, SSR/SSG, DX, ecosystem, deployment — and the cases where we don't pick it.

6 min read
DatabaseTech

Choosing the right database for a SaaS built to scale

PostgreSQL covers 90% of a SaaS’s needs. When to pick relational over NoSQL, and how to think about indexes, migrations and scaling from V1.

6 min read

Your V1, in production by Friday.

Tell us what you want to launch. We reply within 24h with a scope and a date.

Book a sprint

hello@khufu.io

KHUFU

AI-native product agency. Your V1 in 7 days.

hello@khufu.ioWhatsApp

Offers

  • Sprint V1
  • Maintenance
  • Remote
  • Offers
  • Method

Agency

  • Work
  • Comparisons
  • Use cases
  • Blog
  • About
  • Contact

Legal

  • Legal notice
  • Privacy

© 2026 Khufu. All rights reserved.

khufu.io