Cloudflare Workers - build.sh

I’m considering moving from Netlify to Cloudflare because Netlify access management will be extremely expensive for me. Cloudflare seems to be able to offer email/one-time-pin authentication so I’m giving it a go. I took a small site from Netlify and deployed it on Pages in a matter of minutes. But now I’m looking at Workers as my main site needs to serve large (up to 100MB) files and Pages has a 25MB limit.
I saw @jmooring 's posts and example build.sh. My question is, is this necessary in all Hugo site deployments? Do I really need to install a specific version of Hugo (I’m using 0.139.4)?

Grateful for any pointers.

YES, you do.

That’s clear then. So I can just delete the Dart stuff then, edit in my Hugo version number and I’m good to go?

If your project, themes, and modules do not transpile modern Sass to CSS, then yes.

Thanks @jmooring. Much appreciated.

1 Like

For anyone else stumbling across this, here’s an example project hosted on a Cloudflare Worker:

https://github.com/jmooring/hosting-cloudflare-worker

This is the build script:

https://github.com/jmooring/hosting-cloudflare-worker/blob/main/build.sh

2 Likes

Workers have the same limit.

@jmooring thank you for the repo with the build.sh and wrangle.toml examples. Those helped me figure it out on my first attempts with Workers. I honestly have no clue how you figured that out.

1 Like

Hmm… interesting. I saw a response that said Workers had an individual file limit of 100MB. Wonder where that came from? Possibly an AI generated Google query response?

Cheers @tyco.

1 Like

So now I’m thinking that I’ll store all my larger files somewhere else (my company has an AWS account so I could use an S3 bucket and call the files in from there. Problem solved (once I’ve figured how you do that!)

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.