This website runs on Hugo and is hosted via Cloudflare Pages. The last time I wrote a post and updated this site was almost an year ago. Since then, I have been busy with the book, that I rarely got time to update this site.
The book’s done, I now have time to get back to writing and maintaining this site. The first thing I had to do was to upgrade the site.
Local upgrade
I run a local version of Hugo to test out changes before publishing it. When I started the hugo developoment server hugo server -D
, I got this error,
|
|
To fix the error, I had to upgrade hugo with brew upgrade hugo
.
Server upgrade
Since I host this on Cloudflare Pages, I had to set the environment variable to upgrade Hugo.
Steps
- Login to Cloudflare and go to Worker & Pages
- Select your deployment
- Go to Settings
- Under Variables and Secrets, add a new Text variable

Setting Cloudflare variable
- Retry the deployment.
./J