Cloudflare Functions endpoints
Run the OAuth bridge alongside your Pages project.
WEB INFRASTRUCTURE / GITHUB
GitHub OAuth endpoints for Decap CMS sites hosted on Cloudflare Pages.
THE PROJECT, IN PRACTICE
Run the OAuth bridge alongside your Pages project.
Start from the included admin configuration and point it at your own site.
Connect the CMS, GitHub OAuth application, and deployment environment without a separate full application server.
FROM IDEA TO USE
Create the GitHub OAuth application for your site.
Store the client ID and secret in your hosting environment.
Add the Functions and admin files, configure the CMS, and test the login flow.
Decap CMS → GitHub OAuth
↕
Cloudflare Functions
↕
Your site repositoryUse your own OAuth application and deployment configuration. Never put client secrets in browser code.
TAKE IT FOR A SPIN
Follow the repository setup guide for OAuth registration, Cloudflare configuration, and the CMS admin files.
Based on community Netlify CMS OAuth work and adapted to Cloudflare Functions. A starter configuration still needs site-specific setup.