Prerequisites
- Cloudflare business account secured with MFA.
- GitHub organization and repository created.
- Repository pushed successfully.
- Build command and output directory known.
- Google Workspace DNS records documented before any domain migration.
Connect the Repository
- Sign in to Cloudflare.
- Open Workers & Pages.
- Create a Pages project and choose Connect to Git.
- Authorize the Cloudflare GitHub application.
- Grant access only to the Cloudberrie organization and selected repositories where possible.
- Select the target repository.
- Set production branch to
main. - Configure the framework preset, build command, and output directory.
- Save and deploy.
Static HTML Settings
| Framework preset | None |
| Build command | Leave blank |
| Output directory | / or the folder containing index.html |
Verification
- Production deployment succeeds from
main. - A feature branch or PR produces a preview deployment when supported.
- The Pages URL loads without missing assets.
- Cloudflare GitHub App access is limited to necessary repositories.
- Custom domain work follows the DNS migration runbook.
Operational Rule
GitHub is the deployment source of truth. Do not make untracked production edits outside the repository. Correct the source, commit it, review it, and redeploy.