Skip to content
Cloudflare Docs

Workers vs. Pages (compatibility matrix)

You can deploy full-stack applications, including front-end static assets and back-end APIs, as well as server-side rendered pages (SSR), to both Cloudflare Workers and Pages. The compatibility matrix below shows which features are available for each, to help you choose whether to build with Workers or Pages. Unless otherwise stated below, what works in Pages works in Workers, and what works in Workers works in Pages. Think something is missing from this list? Open a pull request β†— or create a GitHub issue β†—.

We plan to bridge the gaps between Workers and Pages and provide ways to migrate your Pages projects to Workers.

Legend
βœ…: Supported
⏳: Coming soon
🟑: Unsupported, workaround available
❌: Unsupported

WorkersPages
Writing, Testing, and Deploying Code
Rollbacksβœ…βœ…
Gradual Deploymentsβœ…βŒ
Preview URLsβœ…βœ…
Testing toolsβœ…βœ…
Local Developmentβœ…βœ…
Remote Development (--remote)βœ…βŒ
Quick Editor in Dashboard β†—βœ…βŒ
Static Assets
Early HintsβŒβœ…
Custom HTTP headers for static assets🟑 1βœ…
Middlewareβœ… 2βœ…
Redirects🟑 3βœ…
Smart Placementβœ…βœ…
Serve assets on a pathβœ…βŒ
Observability
Workers Logsβœ…βŒ
Logpushβœ…βŒ
Tail Workersβœ…βŒ
Real-time logsβœ…βœ…
Source Mapsβœ…βŒ
Runtime APIs & Compute Models
Node.js Compatibility Modeβœ…βœ…
Durable Objectsβœ…πŸŸ‘ 4
Cron Triggersβœ…βŒ
Bindings
AIβœ…βœ…
Analytics Engineβœ…βœ…
Assetsβœ…βœ…
Browser Renderingβœ…βœ…
D1βœ…βœ…
Email Workersβœ…βŒ
Environment Variablesβœ…βœ…
Hyperdriveβœ…βœ…
Image Resizingβœ…βŒ
KVβœ…βœ…
mTLSβœ…βœ…
Queue Producersβœ…βœ…
Queue Consumersβœ…βŒ
R2βœ…βœ…
Rate Limitingβœ…βŒ
Secretsβœ…βœ…
Service bindingsβœ…βœ…
Vectorizeβœ…βœ…
Builds (CI/CD)
Monoreposβœ…βœ…
Build Watch Pathsβœ…βœ…
Build Cachingβœ…βœ…
Deploy HooksβŒβœ…
Branch Deploy ControlsβŒβœ…
Custom Branch AliasesβŒβœ…
Pages Functions
File-based Routing❌ 5βœ…
Pages Plugins❌ 6βœ…
Domain Configuration
Custom domainsβœ…βœ…
Custom subdomainsβœ…βœ…
Custom domains outside Cloudflare zonesβŒβœ…
Non-root routesβœ…βŒ

Footnotes

  1. Similar to 3, to customize the HTTP headers that are returned by static assets, you can use Service bindings to connect a Worker in front of the Worker with assets. ↩

  2. Middleware can be configured via the run_worker_first option, but is charged as a normal Worker invocation. We plan to explore additional related options in the future. ↩

  3. You can handle redirects by adding code to your Worker (a community package β†— is available for _redirects support), or you can use Bulk Redirects. ↩

  4. To use Durable Objects with your Cloudflare Pages project, you must create a separate Worker with a Durable Object and then declare a binding to it in both your Production and Preview environments. Using Durable Objects with Workers is simpler and recommended. ↩

  5. Workers supports popular frameworks, many of which implement file-based routing. ↩

  6. Everything that is possible with Pages Functions can also be achieved by adding code to your Worker or by using framework-specific plugins for relevant third party tools. ↩