Workers is Cloudflare's recommended replacement direction for new workloads that might previously have used Cloudflare Pages. Existing migrations still need attention to functions, routing and domains. The guide notes that Workers custom domains require Cloudflare-managed nameservers, unlike the broader domain setup possible with Pages.[5][8]
It also overlaps Vercel for frontend hosting and request-driven application code. Runtime APIs, framework integration, limits and billing differ, so this is a task-level alternative rather than an assertion that every deployment can move unchanged.[1][2][3][9][10]
Overview
Cloudflare Workers is a serverless platform for application code and static frontend assets on Cloudflare's network. It supports full-stack workflows without a customer-managed server, but runtime compatibility, routing order and resource limits matter. Static delivery and code execution can have different billing and availability behavior.[1][2][3][4]
Serverless code and static assets
Cloudflare Workers is a serverless application platform operating across Cloudflare's network. It can deliver static frontend assets alongside dynamic request handling, rather than requiring a separate static-hosting product for every application. This is a managed execution model, not unrestricted access to a conventional server operating system.[1][2][3]
Static assets normally take precedence over Worker code when a matching asset exists. Selective or universal Worker-first routing can change that order. The distinction is important for authentication and logging: putting a check in code does not protect an asset if requests reach the asset before that code runs.[2][5]
Runtime compatibility
Workers provides a subset of Node.js APIs, combining native implementations with compatibility shims. Some shimmed modules can be imported but throw errors when their methods are called. An npm package that installs or imports successfully is therefore not proof that its complete runtime behavior is supported.[3]
The Node.js compatibility defaults depend on the configured compatibility date. Current documentation enables the compatibility behavior by default for dates from August 4, 2026, while older supported dates can require explicit flags. Migration should consider the project's actual date and dependencies rather than applying an old setup rule to every Worker.[3]
Resource and billing model
Workers separates request usage and CPU time from wall-clock duration. The Free plan lists 100,000 requests per day and a 10-millisecond CPU allowance per invocation. The runtime's 128 MB memory limit is per isolate, which can handle multiple requests, rather than an independent allocation for each incoming request.[4][6]
Direct static-asset requests are ordinarily free, while requests that invoke the Worker use its billing model. The pricing guide separately qualifies traffic served through Workers Caching as billable requests, including applicable static-asset traffic. On the Free plan, Worker-first routes that exceed request quota return an error instead of automatically falling back to the static asset.[4][7]
Static-asset limits include 20,000 files per Worker version on Free and 100,000 on paid plans, with a 25 MiB individual-file limit. A higher request allowance or paid compute plan should not be treated as removing all packaging and runtime constraints.[6]
Capabilities & limitations
Static plus dynamic hosting
supported
Assets and serverless request handlers can share a project.[1][2]
Build full-stack sites · Web · Provider network, account plan and regional availability apply