references/pages-functions/README.md
Cloudflare Pages Functions
Use this reference for server-side behavior in an existing Pages project. For new applications, follow the Workers recommendation in the Pages framework guidance.
| Task | Documentation | | --- | --- | | Identify filesystem routes and invocation boundaries | Routing | | Implement request handlers | API reference | | Understand generated Worker output | Advanced mode |
Inspect whether the project uses a Functions directory or framework-generated advanced mode before selecting a routing approach. Fetch current documentation for signatures, supported bindings, configuration, and examples.
In This Reference
- api.md — handlers, context, middleware, and assets
- configuration.md — bindings, environments, types, and local development
- patterns.md — request ownership and shared logic
- gotchas.md — route, binding, and runtime investigation
See Pages for builds and deployment decisions.