zudo-cloudflare-wisdom

Type to search...

to open search from anywhere

Workers

CreatedApr 4, 2026Takeshi Takatsudo

Standalone Cloudflare Workers and Wrangler configuration

Cloudflare Workers are serverless functions that run at the edge. They can be standalone services or part of a Pages project (as Pages Functions).

Workers vs Pages Functions

WorkersPages Functions
Deploymentwrangler deploywrangler pages deploy (with static site)
RoutingCustom routes or *.workers.devFile-based from functions/ directory
Use caseStandalone APIs, webhooks, proxiesAPI endpoints alongside a static site
ConfigFull wrangler.tomlwrangler.toml for bindings only

When to Use Standalone Workers

Use standalone Workers when:

  • The function is a separate service (e.g., search worker, AI chat worker)
  • You need custom domains or routing
  • The worker has its own release cycle independent of the static site
  • You need features not available in Pages Functions

In This Section