Re:Migrating from Netlify to Cloudflare Workers Sites for 2x...
by kenrose on Friday February 11, 2022 @07:29AM
(#30300623)
This post was written in 2020 before Cloudflare Pages was launched.
Presumably Pages was created because they saw a lot of people using Workers and KV for this use case.
Re:Migrating from Netlify to Cloudflare Workers Sites for 2x...
by bastawhiz on Friday February 11, 2022 @11:06AM
(#30303020)
Exactly: if the author had waited another four months, they would have been able to save themselves a lot of trouble.
Re:Migrating from Netlify to Cloudflare Workers Sites for 2x...
by rmbyrro on Friday February 11, 2022 @07:23AM
(#30300568)
Seems CloudFlare is really becoming a jack of all trades, which is cool because they are more and more a [developer friendly] replacement for those big cloud providers.
Re:Migrating from Netlify to Cloudflare Workers Sites for 2x...
by BeefWellington on Friday February 11, 2022 @09:12AM
(#30301670)
> more and more a [developer friendly] replacement for those big cloud providers.
They ARE a big cloud provider.
Re:Migrating from Netlify to Cloudflare Workers Sites for 2x...
by rmbyrro on Friday February 11, 2022 @02:21PM
(#30305860)
Yeah they certainly are. But their services catalog only recently started to approach the: "hell, I can pull an entire commercial app just out of Cloudflare infra". There are still a few missing spots, but seems they'll close the gaps pretty soon. Excited to see.
Re:Migrating from Netlify to Cloudflare Workers Sites for 2x...
by PinkPigeon on Friday February 11, 2022 @07:28AM
(#30300620)
Pages doesn't allow for direct deployments. Has to go via git repo + webhooks.
We make static sites with our CMS and don't really want to integrate another thing into our workflow. Lots of CF and git API calls to automate the whole thing reliably. Thus, we're sticking with workers sites for now. Pages is an attractive offering, however.
Re:Migrating from Netlify to Cloudflare Workers Sites for 2x...
by barake on Friday February 11, 2022 @08:51AM
(#30301444)
Yeah, the totally managed deployment for Pages is great to get started, but not being able to run through our regular CI tool is a major bummer and has us also sticking with Worker sites.
Re:Migrating from Netlify to Cloudflare Workers Sites for 2x...
by nagisa on Friday February 11, 2022 @09:06AM
(#30301618)
It is possible to use the CI to build the website. My static site generator is written in haskell, so for me CI was the only option. Here's how (GHA is my CI):
* build the website and produce a GHA artifact packaged as a zip or somesuch;
* invoke Pages deploy hook API endpoint;
* within cloudflare pages run a (e.g. python) script to download the artifact, decompress it and place the resulting files in the correct output directory.
Ideally these kinds of gymnastics wouldn't be necessary and it would be possible to just run something like `cfpages deploy .` but it is not absolutely impossible to get something working, either.
Re:Migrating from Netlify to Cloudflare Workers Sites for 2x...
by pwdisswordfish9 on Friday February 11, 2022 @03:04PM
(#30306353)
Cloudflare Pages is hardcoded to GitHub (rather than just Git).
[1] https://developers.cloudflare.com/pages/framework-guides/dep...