Home/Engineering/Cloudflare Pages now partners with your favorite CMS
Engineering
Cloudflare Pages now partners with your favorite CMS
Cloudflare Pages partners up with some of the biggest headless CMSs
NA
Nevi, AbhiCloudflare
·November 17, 2021
Cloudflare Pages extends CMS integrations with Deploy Hooks
Headless CMS adoption has grown rapidly as teams decouple content management from site delivery. Cloudflare Pages is formalizing support for that workflow with new partnerships with Sanity and Strapi, alongside existing integrations with Contentful and WordPress.
Deploy Hooks, which Cloudflare Pages introduced in August, are the mechanism that ties content updates to site builds. A Deploy Hook is a URL generated in the Pages dashboard that accepts an HTTP POST request to trigger a deployment outside the normal git workflow. Configured inside a CMS, the hook fires automatically whenever content changes, eliminating the need for developers to manually rebuild sites for every content update.
Setting up a hook
Creating a Deploy Hook in the Cloudflare Pages interface requires two inputs:
Deploy Hook name: A custom label for the hook.
Branch to Build: The branch that gets built and deployed when the hook URL is requested.
After the hook is generated, paste the URL into your CMS's webhook configuration. Subsequent content updates in the CMS automatically trigger a new Pages deployment.
Partner ecosystem and next steps
Sanity, Strapi, Contentful, and WordPress are the most-used CMS platforms among Pages users. Cloudflare says it will work with these partners on deeper integrations in the coming months. Sanity has published a video tutorial demonstrating a Pages deployment with its platform.
For implementation details, Cloudflare's Deploy Hooks documentation covers connecting a Pages project to any of the supported CMS providers.
About a year ago, I was offered a presentation slot at the WeAreDevelopers World Congress in Berlin. I rarely take speaking engagements, especially international ones, but this one arrived at just the right time, the right place, and with the right person – I said yes, on the contingency that Ben Dumke-von der Ehe joins me in the presentation. Ben is an early community hire at Stack Overflow who l