BattlefieldDuck

How to deploy Hexo to Cloudflare Pages

Hexo is a fast, simple and powerful blog framework. You can deploy Hexo to different static site hosts such as Github Pages, Cloudflare Pages, etc. This walkthrough will show you how to deploy Hexo to Cloudflare Pages.

1. Sign in to Cloudflare Pages

To begin, go to the Cloudflare Pages site and sign in with your Cloudflare account.

2. Selecting a GitHub repository

You will need to give Cloudflare access to your GitHub repositories if this is your first time setting up a Cloudflare Pages website.


3. Begin setup

Build command
npm run build

Build output directory
public


4. Deploy site

Success! 🎉

本作品采用 知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议 进行许可。