Cloudflare Pages
注册 Cloudflare 账户
首先,你需要注册一个 Cloudflare 账户,并登录。
点击 注册 Cloudflare 账号 到 Cloudflare 官网注册账号
如果你已经有 Cloudflare 账户,请点击登录 Cloudflare 账号进行登录。
创建你的 Pages
请准备好一个 Hugo 网站的 GitHub 仓库,该仓库已配置 GitHub Pages,并能成功访问
在 Cloudflare Dashboard 首页, 选择 Workers & Pages
菜单 > Create application > Pages > Connect to Git.
配置构建部署
№ | Configuration option | value |
---|---|---|
0 | Production branch | main |
1 | Build command | hugo |
2 | Build directory | public |