What is Cloudflare?
Manages DNS and can proxy traffic to another host. Workers can also host static assets and run server code through supported framework integrations.
What is Cloudflare used for?
Serve a documentation site on Workers Static Assets and connect R2 object storage for downloads.
How to get started with Cloudflare
Check the framework adapter and the Node.js methods your dependencies call. Review DNS, Workers and storage usage on their respective pricing pages.
Static assets and code compatible with Workers
Workers Static Assets can serve files and run framework server routes in the same project, using the supported adapter. Check which Node.js methods the runtime supports. Workers execution and storage have separate billing from website plans.
Best for
Static sites, apps compatible with Workers and teams using Cloudflare for DNS or caching.
Not ideal for
An application that expects to run a standard Linux container or a permanent background process inside Workers.
What materially matters
- Workers Static Assets is Cloudflare’s recommendation for new projects. Existing Pages projects have a separate migration path.
- D1, R2 and KV provide different storage models and have their own pricing.
Cloudflare FAQ
Should I choose Cloudflare Pages or Workers for a new site?
Cloudflare recommends Workers Static Assets for new projects. Existing Pages projects have their own configuration and can migrate on their own schedule.