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 (CDN). Like Netlify or Vercel, Cloudflare Pages makes the deployment process flexible and easy. You can add a GitHub repo to the service and build & host Zola-based websites after each PR automatically.
Step-by-step
- Sign in or create a new Cloudflare account and choose "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. Keep in mind that if you would like to use the default Pages domain (pages.dev), this will be your website's future URL ("yourprojectname.pages.dev"). Additionally, select a production branch.
- In Build settings, select Zola as the Framework preset. Build command and Build output directory will be filled automatically.
- Toggle Environment variables below and add
ZOLA_VERSION
as a variable name. Use0.13.0
or a different Zola version as the value. - Finally, save and deploy.
Your website is now built and deployed to Cloudflare's network! You can add a custom domain or modify settings in the Pages dashboard.
You may find documentation and guides like Getting started with Cloudflare Pages and Deploying Zola with Cloudflare Pages in the Developers portal.