This guide assumes that you have completed steps 1-3 from Getting Started and have a successfully build website in your html
branch.
- Navigate to your Cloudflare Dashboard and click Pages in the sidebar.
- Click Create a project > Connect to Git.
- Add your account and select your repository. Click Begin setup to proceed.
- Name your project whatever you'd like and select
html
as your Production branch. Leave all the optional Build settings blank-- we don't need any of these.
- Click Save and Deploy
- IMPORTANT: Click Pages in the sidebar and click on your site.
- Click Settings.
- Click Builds & deployments.
- Click Configure Preview deployments.
- Click None and Save.
As of this writing, if you don't IMMEDIATELY disable preview deployments, Cloudflare will automatically generate live externally-accessible "preview" URLs for every single branch in your website repo (even if your repo is private). Based on how Arise works, this will not only result in previews that are broken and do not work, but it will disclose literally everything in your repo including potentially WIP pages if your repo is private. To put a cherry on top, after preview deployments have been build for a branch, you cannot delete them without deleting and re-adding your entire damn website. What a stupid-ass system.
Anyway, rants aside, your site should now be up and running on Cloudflare Pages! Congrats! If you'd like to use a custom domain, please review Cloudflare's custom domains guide as that is outside of the scope of this documentation.