Deploy to Cloudflare Pages
Deploy your code to the Cloudflare Pages platform.
In some cases, Stackbit automatically deploys your site using the default deployment and hosting methods. You can still deploy your code to your own Cloudflare Pages account. Learn more about Stackbit's deployment options.
Sign into Cloudflare Pages
To begin, go to the Cloudflare Pages site and sign in with your Cloudflare account. If you do not have an account yet, you can sign up as you get started deploying your new Pages site.
Connect to Your Git Provider
After logging into your Cloudflare account, in Account Home > go to Pages > Create a project. You will be prompted to sign in with your preferred git provider, which allows Cloudflare Pages to deploy your projects, and update your PRs with preview deployments. Sign in with your GitHub account.
Select Project from GitHub
Select the GitHub repo that you transferred to your account.
Configure Your Deployment
Once you have selected a repository, select Install & Authorize then Begin setup. You can then customize your deployment in the Set up builds and deployments page.
Your project name will be used to generate your project's hostname. By default, this matches your GitHub repo name.
The production branch indicates the branch that Cloudflare Pages should use to deploy the production version of your site. For most projects, this is the
master branch. All other branches that are not your production branch will be used for preview deployments.
In Build settings, choose your appropriate setting for the framework preset.
Now you're ready to deploy! Click on Save and Deploy, then wait for the project to deploy and your Stackbit site will be live! 🎉