Cloudflare Pages Setup Guide

Host your websites on the global edge network directly from your GitHub repository for free.

Prerequisite Checklist

Step-by-Step Setup Instructions

1

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.

2

Navigate to Workers & Pages

Log in to your Cloudflare Dashboard. From the left-hand sidebar navigation, click on the Workers & Pages option.

3

Create an Application & Link Git

Click on Create application, then toggle over to the Pages tab. Click the button labeled Connect to Git.

4

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.

5

Configure Build Settings

Select your repository from the list and hit Begin setup. Review the configuration options:

Framework preset: None (Plain HTML)
Build command: // Leave this blank
Build output directory: /
6

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.