Functions (3)
Last updated Apr 21, 2026 Pages Functions allows you to build full-stack applications by executing code on the Cloudflare network with Cloudflare Workers. With Functions, you can introduce application aspects such as authenticating, handling form submissions, or working with middleware. Workers runtime features are configurable on Pages Functions, including compatibility with a subset of Node.js APIs and the ability to set a compatibility date or compatibility flag. Use Functions to deploy server-side code to enable dynamic functionality without running a dedicated server.
To provide feedback or ask questions on Functions, join the Cloudflare Developers Discord ↗︎ and connect with the Cloudflare team in the #functions channel ↗︎.
- Get started
- Routing
- API reference
- Examples
- Middleware
- Configuration
- Local development
- Bindings
- TypeScript
- Advanced mode
- Pages Plugins
- Metrics
- Debugging and logging
- Pricing
- Module support
- Smart Placement
- Source maps and stack traces
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"WebPage","@id":"https://developers.cloudflare.com/pages/functions/#page","headline":"Functions","description":"Build full-stack applications on Cloudflare Pages using Pages Functions.","url":"https://developers.cloudflare.com/pages/functions/","inLanguage":"en","image":"https://developers.cloudflare.com/pages/functions/og.png?v=6c143d91318b25e4","dateModified":"2026-04-21","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: Use a _worker.js file to develop Pages Functions instead of the /functions directory. title: Advanced mode image: https://developers.cloudflare.com/pages/functions/advanced-mode/og.png?v=23c3d4d9b10b9513
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/pages/llms.txt
Use this file to discover all available pages before exploring further.
Docs