What is Cloudflare?
According to Cloudflare:
Cloudflare Pages 📄
Well, the answer is simple. They have the advantages that other providers don’t have; simply because they have over 200+ data centers worldwide, no matter where your potential viewers are, they will be guaranteed to load your website fast 💨!
plus, they have a free tier, which is fantastic 👏
Setting up Cloudflare pages!
Now, this is the fun part. here’s how you set up Cloudflare pages and make your website from 🐌 to 🔥
Setup Cloudflare account 🔑
Once you sign up, you can add your domain to Cloudflare via the add site button.
Add site button
Next, add your site to Cloudflare; once you do that, click next.
Select the free tier; then, it will scan your current DNS settings and migrate them to Cloudflare; after that, click continue.
After that, It should prompt you to move your current name server to Cloudflare free name server. once you’ve done that, you should be greeted with this screen.
Next, all you need to do is click on the pages button @ your Cloudflare dashboard
Then create a new project.
Creating Pages Project
Once you’ve clicked that button, it should prompt you to connect to your GitHub account; you want to do that, then authorize it to either your main GitHub account or your organization GitHub account. After you’ve linked your GitHub, you can click the repository you want to host, then click begin setup!
Next, you can set your project name, the branch you want to use, and your build settings.
If you want to host a static HTML file, you can set the framework preset to none, then put the build command as
Page build settings
And that’s it! Click deploy, and your site should be ready in no time! it may take 2 - 5 min for it to build your site depending on the site
Thank you for reading, have a great day!