mirror of
https://github.com/getzola/zola
synced 2024-12-16 15:22:28 +00:00
1.5 KiB
1.5 KiB
+++ title = "Cloudflare Pages" weight = 60 +++
Cloudflare is a cloud solutions provider with a huge proprietary content delivery network. Like Netlify or Vercel Cloudflare Pages makes deployment process flexible and easy. You can add GitHub repo to the service and build&host Zola-bases websites after each PR automatically.
Step-by-step
- Open or create the new one Cloudflare account and choice Pages on the right nav column
- Press the button "Create a project"
- Select the GitHub repo that contains your Zola website and connect it to Cloudflare Pages
- Click "Begin setup"
- Enter your project name and keep in mind, if you would like to use default Pages domain (pages.dev) it will be your website future URL, like
yourprojectname.pages.dev
. Also, select a production branch. - In Build settings select Zola as a Framework preset. Build command and Build output directory will be filled automatically.
- Toggle Environment variables below and add
ZOLA_VERSION
as a variable name and0.13.0
or an actual Zola's version as a value. - Save and deploy.
Your website is now built and deployed to Pages. You may add custom domain or change some settings in the Pages dashboard.
Also, you may find well documented settings and howto Getting started with Cloudflare Pages and Deloying Zola with Cloudflare Pages in Developers portal.