News for hackers. Stuff that matters.
Re:Cloudflare Pages: the best way to build JAMstack websites by jshier on Thursday December 17, 2020 @11:21AM (#25456965)
What if I already have static HTML and just need a host? No builds (I do them locally), no frameworks, just an HTML structure. I'd love to just be able to point to a git repo and have the site published through Cloudflare, since it already sits in front of my site anyway.
Re:Cloudflare Pages: the best way to build JAMstack websites by rita3ko on Thursday December 17, 2020 @11:40AM (#25457180)
Hi there, I'm the PM working on Cloudflare Pages. We don't have support for this now since we're still in beta, so not everything is there yet, but it's certainly a use case we intend to support. You'll just be able to specify no build step. :)
Re:Cloudflare Pages: the best way to build JAMstack websites by jshier on Thursday December 17, 2020 @12:52PM (#25458097)
That's what I figured, thanks.
Re:Cloudflare Pages: the best way to build JAMstack websites by markelliot on Thursday December 17, 2020 @11:40AM (#25457184)
Linked in response to a question I asked below, it seems like you can use CloudFlare Workers to host a static site: https://developers.cloudflare.com/workers/platform/sites

But also, from reading the Pages docs I wager you can also make the build command something like `echo done` and then set the build directory in your configuration to be `.`.

Re:Cloudflare Pages: the best way to build JAMstack websites by tmk1108 on Thursday December 17, 2020 @02:00PM (#25458950)
I might be getting confused reading their docs but isn't this what you want? https://developers.cloudflare.com/pages/how-to/deploy-anythi...

With optional build command, can't you just leave it empty and then point to the directory that has your HTML files?

Re:Cloudflare Pages: the best way to build JAMstack websites by Judson on Thursday December 17, 2020 @06:38PM (#25461955)
I saw your comment and implemented the ability to connect a repository of static files and host them on our app platform (Uffizzi.com) -- we have a generous free tier! Email is in my profile if you have any questions or feature requests.