SendMost
SendMost
CDCloudflare Developers
Created by SendMost on 4/3/2024 in #pages-help
Hugo Static Site missing images once deployed to Cloudflare Pages
Hi everyone, Thank you for looking at this issue. I made a simple Hugo website locally, git pushed to GitHub, and deployed to Cloudflare Pages (https://williamsrestore.com/). I removed the base_url in hugo.toml and used the build commands of "hugo -b $CF_PAGES_URL" in Cloudflare pages. I attached an image showing that Cloudflare Pages uploaded the images (work1-4.jpg) but when I visit https://williamsrestore.com, the images are broken/not loading at the bottom of the website. Any advice on how to fix this? Thanks in advance.
16 replies