Publish your site
Build the site and put it on Cloudflare, or any static host.
Run hugo --minify. Hugo writes the finished site to a folder called public. Upload that folder to any host that serves static files.
Cloudflare Workers#
Add a wrangler.jsonc next to hugo.toml:
{
"name": "my-product",
"compatibility_date": "2026-10-01",
"assets": { "directory": "public" }
}
Then run hugo --minify && npx wrangler deploy.
Check before you go live#
Set baseURL
Set
baseURL in hugo.toml to your real address. The canonical links, the sitemap and the share cards all use it.