Upload Site to Cloudflare
To upload our site to Cloudflare we need a package called wrangler. It is recommended to install this package local in the project.
cd ~/www/myblog/
npm install wrangler --save-dev
Check if correct installed:
npx wrangler --version
Build the site:
cd ~/www/myblog/
hugo
To upload the site to Cloudflare pages:
npx wrangler login
npx wrangler pages deploy public/
Your blog is now live at your domain!
Tutorial series
All posts in Tutorial
- Introduction
- Buying a Domain
- Setting up a Cloudflare account
- Custom email free
- Upload site to Cloudflare