Get started with Cloudflare Pages by deploying this pretty template on your own account, and start playing around.
Clone this Repository to your own GitHub account.
Or download this Repository as a ZIP file by clicking the green button that says "<> Code" and clicking "Download ZIP", then extract the contents to a new folder, and upload the content (and only the content; not the folder) of that folder to a new GitHub Repository.
Access your free Cloudflare account (new to Cloudflare?), and go to the Pages tab.
Go to your Cloudflare Dashboard. Click on the blue "Create a project" button, and select "Connect to Git".
Connect your GitHub account, select your Repository, and click "Begin setup".
If you want, you can update some content, including the index.html.
You might want to update the following files with your own parameters:
Just hit "Save and Deploy" and let the magic happen! ✨
Share your beautiful website with the world. 🤓
==> https://cloudflare-pages-template.pages.dev/ (your link might look different)
Added Functions/_middleware.js
from the GitHub Repo Dynamic Social Previews Meta Tags with Cloudflare Pages, in order to add Meta Tags.
Don't forget to edit the file _middleware.js with your own title, description, and such.
Add custom headers to create Content Security Policies (CSP) and more
Add a custom domain to a branch.
Redirecting www to domain apex
Cloudflare Pages gets even faster with Early Hints
This is a general introduction to Cloudflare Pages.
Educational purposes only. This repo does not reflect the opinions of, and is not affiliated with Cloudflare. Screenshots are taken from the Cloudflare dashboard.