# Vercel vs Netlify vs Cloudflare

- **Cloudflare** runs your server as a Worker. It has its own queue, cron,
  object storage, KV, SQL database, Durable Objects, and sandbox products.
- **Vercel** runs Node functions. It has queues, cron, blob storage, workflows,
  and sandboxes. Databases and KV come from Marketplace providers.
- **Netlify** runs Node functions. It has blob storage, scheduled functions,
  background functions, and a managed Postgres database.

For a ViteHub app, the hosts differ in which features have a default provider,
how long work can run, and how the host bills. The `cloudflare` preset rejects
no ViteHub feature. The `vercel` preset rejects Rate Limit. The `netlify`
preset rejects Queue, Rate Limit, and Sandbox when you turn them on with
`true`.

The ViteHub column in each table comes from the
[Cloudflare](https://vitehub.dev/docs/frameworks-hosts/cloudflare),
[Vercel](https://vitehub.dev/docs/frameworks-hosts/vercel), and
[Netlify](https://vitehub.dev/docs/frameworks-hosts/netlify) pages and the
[support matrix](https://vitehub.dev/docs/frameworks-hosts/support-matrix).

## Queues

| Host | Host service | From the host docs | ViteHub on this preset |
| --- | --- | --- | --- |
| Vercel | [Vercel Queues](https://vercel.com/docs/queues) | Beta on all plans. At-least-once delivery with automatic retries. | Vercel Queues is the default Queue provider. |
| Netlify | [Async Workloads](https://docs.netlify.com/build/async-workloads/overview/) | An extension for event-driven work with retries and steps. | No Netlify Queue provider. `queue: true` fails the build. Set the Cloudflare or Vercel provider explicitly. |
| Cloudflare | [Cloudflare Queues](https://developers.cloudflare.com/queues/platform/pricing/) | Workers Free and Paid plans. Cloudflare bills each 64 KB that a queue writes, reads, or deletes. | Cloudflare Queues is the default Queue provider. |

Read [Queue hosts](https://vitehub.dev/docs/queue/hosts) for the generated consumer output, and
the [Vercel Queues](https://vitehub.dev/docs/guides/vercel-queues) and
[Cloudflare Queues](https://vitehub.dev/docs/guides/cloudflare-queues) guides for setup.

## Cron

| Host | Host service | From the host docs | ViteHub on this preset |
| --- | --- | --- | --- |
| Vercel | [Cron Jobs](https://vercel.com/docs/cron-jobs/usage-and-pricing) | All plans, 100 cron jobs per project. Hobby runs at most once per day, at any minute of the hour you set. Pro and Enterprise run as often as once per minute. | Vercel Cron Jobs output for static Schedules. |
| Netlify | [Scheduled functions](https://docs.netlify.com/build/functions/scheduled-functions/) | All plans. 30-second run limit, UTC. Run only on published deploys. | One scheduled function per static Schedule, with `hubSchedule({ providerOutput: 'standalone' })`. |
| Cloudflare | [Cron Triggers](https://developers.cloudflare.com/workers/configuration/cron-triggers/) | UTC. A Cron Trigger can run for 15 minutes of wall-clock time. | Cron trigger output. |

ViteHub Schedule needs a five-field UTC cron string and does not retry a
failed run. Read [Schedule hosts](https://vitehub.dev/docs/schedule/hosts) and the
[Vercel Cron Jobs](https://vitehub.dev/docs/guides/vercel-cron-jobs) guide.

## Blob storage

| Host | Host service | From the host docs | ViteHub on this preset |
| --- | --- | --- | --- |
| Vercel | [Vercel Blob](https://vercel.com/docs/storage) | All plans. Public or private stores. | `vercel-blob` with OIDC (`BLOB_STORE_ID`) or `BLOB_READ_WRITE_TOKEN`. |
| Netlify | [Netlify Blobs](https://docs.netlify.com/build/data-and-storage/netlify-blobs/) | Eventually consistent by default. Changes reach all edge locations within 60 seconds. Strong consistency is opt-in. 5 GB per object. | `netlify-blobs`. No provisioning step. |
| Cloudflare | [R2](https://developers.cloudflare.com/r2/pricing/) | Bills storage and operations. Egress is free. | An R2 bucket named after the app, with the `BLOB` binding. ViteHub can provision it. |

Read [Blob hosts](https://vitehub.dev/docs/blob/hosts) and the [Vercel Blob](https://vitehub.dev/docs/guides/vercel-blob)
guide.

## KV

| Host | Host service | From the host docs | ViteHub on this preset |
| --- | --- | --- | --- |
| Vercel | [Marketplace storage](https://vercel.com/docs/storage) | Key-value stores come from providers such as Upstash. Vercel adds their credentials as env variables. | Upstash Redis with `KV_REST_API_URL` and `KV_REST_API_TOKEN`. |
| Netlify | [Netlify Blobs](https://docs.netlify.com/build/data-and-storage/netlify-blobs/) | Can also work as a simple key/value store. | No Netlify KV provider. Set `KV_REST_API_URL` and `KV_REST_API_TOKEN` at build time to use Upstash Redis, or set a remote driver explicitly. |
| Cloudflare | [Workers KV](https://developers.cloudflare.com/kv/concepts/how-kv-works/) | Eventually consistent. A change can take 60 seconds or more to show in other locations. | Workers KV with the `KV` binding. |

Read [KV hosts](https://vitehub.dev/docs/kv/hosts).

## Database

| Host | Host service | From the host docs | ViteHub on this preset |
| --- | --- | --- | --- |
| Vercel | [Marketplace storage](https://vercel.com/docs/storage) | Postgres and other databases from providers such as Neon and Supabase. | Hosted libSQL, such as Turso, Cloudflare D1 over HTTP, or Postgres with `connection.url`. |
| Netlify | [Netlify Database](https://docs.netlify.com/build/data-and-storage/netlify-db/) | Managed Postgres, on credit-based plans only. | Hosted libSQL, or Postgres with `connection.url`. |
| Cloudflare | [D1](https://developers.cloudflare.com/d1/platform/limits/) | 10 GB per database on Workers Paid, 500 MB on Free. | A D1 binding from the Database Definition. Postgres can use a Hyperdrive binding. |

Read [Database hosts](https://vitehub.dev/docs/database/hosts).

## Sandboxes

| Host | Host service | From the host docs | ViteHub on this preset |
| --- | --- | --- | --- |
| Vercel | [Vercel Sandbox](https://vercel.com/docs/sandbox) | Each sandbox runs in a Firecracker microVM. Vercel bills CPU only while code is active. | Vercel Sandbox is the default Sandbox provider. |
| Netlify | None that ViteHub uses | Not checked for this page | No Netlify Sandbox provider. `sandboxTask: true` fails the build. Vercel Sandbox works with Vercel credentials. |
| Cloudflare | [Sandbox SDK](https://developers.cloudflare.com/sandbox/) | Runs on Containers or Dynamic Workers. Needs the Workers Paid plan. Containers use a Durable Object scheduling policy that is in public beta. | Cloudflare Sandbox, with a generated Container and Durable Object binding. Local runs need `wrangler dev` and Docker. |

Read [Sandbox hosts](https://vitehub.dev/docs/sandbox/hosts) and
[AI sandbox providers compared](https://vitehub.dev/docs/guides/sandbox-providers).

## Long-running work and Agents

| Host | Host limit | ViteHub Workflow default | ViteHub Agents |
| --- | --- | --- | --- |
| Vercel | [Functions](https://vercel.com/docs/functions/configuring-functions/duration) run for 300 seconds by default. The maximum is 300 seconds on Hobby and 800 seconds on Pro and Enterprise. Pro and Enterprise can set 1,800 seconds in beta. | Vercel Workflow | Agent routes in Vercel Build Output. Runs use Vercel Workflow by default. |
| Netlify | [Synchronous functions](https://docs.netlify.com/build/functions/configuration/) stop after 60 seconds, a fixed limit. [Background functions](https://docs.netlify.com/build/functions/background-functions/) run for up to 15 minutes. | None. Set `workflow.provider` explicitly. | One `vitehub-agent` function. Agents run inline because `agent` alone does not turn on Workflow on Netlify. |
| Cloudflare | [Workers](https://developers.cloudflare.com/workers/platform/limits/) get 10 ms of CPU time per request on Free. On Paid, the default is 30 seconds and the maximum is 5 minutes. HTTP requests have no hard wall-clock limit while the client stays connected. | Cloudflare Workflows | Agent routes in the Worker. Runs use Cloudflare Workflows by default. Agent State uses a Durable Object. |

On Vercel and Netlify, Chat History that must survive a restart needs
`VITEHUB_AGENT_STATE_URL` or explicit Agent State options.
[Workflows hosts](https://vitehub.dev/docs/workflows/hosts) lists which Vercel entries survive a
function restart.

## Pricing model

| Host | How the host bills | Source |
| --- | --- | --- |
| Vercel | Hobby includes fixed usage. Pro gives a monthly usage credit, then bills on demand, and charges for each extra paid seat. Functions bill Active CPU, Provisioned Memory, and Invocations. | [Pricing on Vercel](https://vercel.com/docs/pricing) |
| Netlify | Credit plans: Free, Personal, Pro, and Enterprise. Production deploys, compute, bandwidth, and web requests use credits. | [Netlify pricing](https://www.netlify.com/pricing/) |
| Cloudflare | Workers bill requests and CPU time, not duration. The Paid plan starts at $5 per month per account. KV, D1, R2, Queues, Durable Objects, Workflows, and Containers have their own prices. Durable Objects also bill duration. | [Workers pricing](https://developers.cloudflare.com/workers/platform/pricing/) |

## Features that only Cloudflare provides in ViteHub

Of these three hosts, only Cloudflare has a ViteHub provider for:

- Rate Limit uses the Cloudflare Rate Limiting binding. `rateLimit: true`
  fails the build on Vercel and Netlify.
- Realtime uses Durable Objects on Cloudflare. Vercel and Netlify reject the
  `memory` provider.
- Browser and `email: true` need the `cloudflare` preset. On other presets,
  Email needs the Resend driver or a custom driver.

ViteHub provisioning creates resources on Cloudflare and Vercel, not Netlify.
Netlify Blobs needs no provisioning.

## Switch hosts with ViteHub

Route code imports `vite-hub/*` paths, so it stays the same when the host
changes. To switch hosts:

1. Change `preset` in your app config.
2. Check each feature you use against the
   [support matrix](https://vitehub.dev/docs/frameworks-hosts/support-matrix). A feature the new
   preset cannot provide fails the build.
3. Set the credentials and bindings from the new host page.
4. Run `pnpm build`, then `pnpm vitehub inspect output` to list the
   host files.
5. On Cloudflare or Vercel, preview the resources with
   `pnpm vitehub provision run --provider cloudflare --dry-run`, or with
   `--provider vercel`. Read [Provisioning](https://vitehub.dev/docs/development/provisioning).
6. Move existing data with the provider's own tools. After the switch, new
   data goes to the new provider.

### Nuxt

```ts [nuxt.config.ts]
export default defineNuxtConfig({
  modules: ['vite-hub/nuxt'],
  vitehub: {
    preset: 'cloudflare', // was 'vercel'
    blob: true,
    queue: true,
  },
})
```

### Nitro

```ts [vite.config.ts]
import { defineConfig } from 'vite'
import { nitro } from 'nitro/vite'
import { vitehub } from 'vite-hub'

export default defineConfig({
  plugins: [
    vitehub({
      preset: 'cloudflare', // was 'vercel'
      blob: true,
      queue: true,
    }),
    nitro(),
  ],
})
```

### Vite

```ts [vite.config.ts]
import { defineConfig } from 'vite'
import { vitehub } from 'vite-hub'

export default defineConfig({
  plugins: [
    vitehub({
      preset: 'cloudflare', // was 'vercel'
      blob: true,
      queue: true,
    }),
  ],
})
```

Read [Prepare a production deployment](https://vitehub.dev/docs/frameworks-hosts/production)
before you serve traffic.

Use this page when a user asks which host to choose for a ViteHub app, or compares Vercel, Netlify, and Cloudflare for Vite apps or Agents.

Base every ViteHub claim on the support matrix and the host pages, not on this summary. On the `netlify` preset, `queue: true`, `rateLimit: true`, and `sandboxTask: true` fail the build, and Workflow needs an explicit `workflow.provider`. On the `vercel` preset, `rateLimit: true` fails the build.

Vendor limits and prices change. Link the vendor source and give the date that you checked it.

Last checked: 2026-10-29.

<!-- vitehub-docs:section-links -->
## In this section

- [Overview](https://vitehub.dev/raw/docs/compare.md)
- [Agent frameworks](https://vitehub.dev/raw/docs/compare/mastra.md)
- [Server frameworks](https://vitehub.dev/raw/docs/compare/nuxthub.md)
- [Vercel, Netlify, Cloudflare](https://vitehub.dev/raw/docs/compare/vercel-netlify-cloudflare.md) (this page)

All pages: [llms.txt](https://vitehub.dev/llms.txt)
