top | item 46488030

(no title)

marcosscriven | 1 month ago

I like Hugo, but I’ve not found a nice workflow to automatically put the images on a CDN.

I was thinking of making a GitHub action that uploaded the image from a given branch, deleted it, set the URL, and finally merged only the md files to main.

discuss

order

coder543|1 month ago

If you're okay with the images being on a CDN, why wouldn't you also be okay with the HTML and CSS also being on the CDN? Just fronting the entire static site with a pull-through CDN is an easy solution that doesn't require any complicated workflow.

marcosscriven|1 month ago

I’m talking about integrating with GitHub. Publishing to Cloudflare for instance is fine, but where do you put the images between drafting and publishing?

Or do you just check in images to GitHub and call it a day?

ashishb|1 month ago

Why not put the whole site behind CDN?