posts/cloudflare-pages-hugo-baseurl/ #210
utterances-bot
started this conversation in
Post Comments
Replies: 1 comment
-
Hey Nathan, It's possible in the Cloudflare Pages UI to override the env var CF_PAGES_URL for the production branch only + using a build script like "hugo -b $CF_PAGES_URL --minify". Older production commits still don't work. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hugo Base URL with Cloudflare Pages :: Nathan Vaughn — Adventures in programming and tech
Introduction # I’ve been using Cloudflare Pages for a while now, after migrating from GitHub pages. The limits are more generous, the preview deployments are super handy, and I was already using Cloudflare.
After recently redoing my homepage, I realized that a lot of links and images would be wrong when making a pull request. They were pointing to the live site rather than the preview deployment for that pull request.
https://blog.nathanv.me/posts/cloudflare-pages-hugo-baseurl/
Beta Was this translation helpful? Give feedback.
All reactions