Prerequisite Checklist
- A free GitHub account with your site files uploaded.
- A free Cloudflare account.
- An
index.htmlfile located at the root of your repository.
Step-by-Step Setup Instructions
Prepare & Push Your Repository
Ensure your project files are safely stored on GitHub. If you haven't uploaded this file yet, create a public or private repository and push this file up as your root page.
Navigate to Workers & Pages
Log in to your Cloudflare Dashboard. From the left-hand sidebar navigation, click on the Workers & Pages option.
Create an Application & Link Git
Click on Create application, then toggle over to the Pages tab. Click the button labeled Connect to Git.
Authorize GitHub and Select Repo
Choose GitHub as your provider. When prompted by GitHub, authenticate and authorize Cloudflare access to either all your repositories or specifically select your newly created web site repository.
Configure Build Settings
Select your repository from the list and hit Begin setup. Review the configuration options:
Save and Deploy
Click Save and Deploy. Cloudflare will read your files, build your site, and provide you with a unique, secure public domain ending in .pages.dev.
Automatic Continuous Integration
The best part about this flow is that any time you make changes to your website files on GitHub and push them to your repository, Cloudflare Pages will notice the new updates instantly and redeploy your live site automatically within seconds.