TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Cloudflare working on Cloudflare Pages, for deploying and hosting JAMstack

158 pointsby nilsandreyover 4 years ago

12 comments

Meekroover 4 years ago
For the last couple months, I&#x27;ve used Cloudflare Workers Sites to host one of my static sites, and I&#x27;m planning to migrate several more onto it. For those who don&#x27;t know, Cloudflare Workers is their service that answers web queries by running server-side javascript that you&#x27;ve uploaded. It also comes with Workers KV, a very fast key-value storage database (like redis) that the server-side javascript can query.<p>So then, they said why not just upload your static site into the KV database, where the key might be &quot;&#x2F;index.html&quot; and the value is the html content of that page. Then have a short javascript that reads from that KV and returns the requested page. They wrote some client-side scripts to simplify the uploading, and Workers Sites was born!<p>I love how your content is automatically replicated to all of their datacenters and loads super-fast from everywhere in the world. I also love that it&#x27;s really cheap.<p>But the downside is how some features in Cloudflare&#x27;s control panel don&#x27;t work if you&#x27;re hosting your static site this way. For example, I wanted to use the Page Rules to redirect &#x2F;page1.html to &#x2F;page2.html. I also wanted to use Page Rules to set browser caching for *.jpg files. But it turns out that Cloudflare Workers execute code before the Page Rules feature does, so it doesn&#x27;t work! I had to solve both issues by changing their default javascript to build in redirects and browser caching manually. Not too hard, but annoying.
评论 #25327720 未加载
评论 #25328312 未加载
评论 #25327916 未加载
DenseCometover 4 years ago
Cloudflare already had the ability to host static pages on the edge with Workers Sites [1] but it required a paid subscription to Workers KV. They recently introduced a free tier for that [2], so Cloudflare Pages seems like a packaged up service with CI&#x2F;CD added to the mix.<p>[1] <a href="https:&#x2F;&#x2F;developers.cloudflare.com&#x2F;workers&#x2F;platform&#x2F;sites" rel="nofollow">https:&#x2F;&#x2F;developers.cloudflare.com&#x2F;workers&#x2F;platform&#x2F;sites</a><p>[2] <a href="https:&#x2F;&#x2F;blog.cloudflare.com&#x2F;workers-kv-free-tier&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.cloudflare.com&#x2F;workers-kv-free-tier&#x2F;</a>
评论 #25328348 未加载
评论 #25327799 未加载
protoductionover 4 years ago
I&#x27;ve been embracing Cloudflare workers for more and more small websites and APIs, so much so that I ended up writing a small Koa&#x2F;Express-like framework for it to make it more similar to &#x27;normal&#x27; Node&#x2F;Deno development [0]. Currently working on a starter template [1].<p>Cloudflare Pages sounds like a competitor to Netlify&#x2F;Vercel mostly - paired with Workers it makes it very compelling. Slowly it&#x27;s becoming a one-stop shop for me for small-medium projects that don&#x27;t require any real compute.<p>[0]: <a href="https:&#x2F;&#x2F;github.com&#x2F;gzuidhof&#x2F;sunder" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;gzuidhof&#x2F;sunder</a> [1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;gzuidhof&#x2F;sunder-worker-template" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;gzuidhof&#x2F;sunder-worker-template</a>
lukevpover 4 years ago
I was literally just thinking about this yesterday, and am so excited! CF Workers already run at the edge and have a globally distributed kv store... you could use this coupled with Workers and KV to run an entire site along with data storage fully on the CF edge. That would get ridiculously low latency, automatic https with termination in the same DC as the compute (whereas with Netlify you either use their CDN and https or you run it thru CF and have 2 hops), and the ability to run lambdas in multiple languages with CF workers. I’m going to have to give this a try as soon as it’s available.
karmakazeover 4 years ago
After much digging Jamstack is Js, APIs, and Markup--page renderer as far as I can tell.
评论 #25327678 未加载
评论 #25327692 未加载
评论 #25327440 未加载
emmanueloga_over 4 years ago
This sounds like bad news for vercel and netlify, maybe a little less so for firebase.<p><a href="https:&#x2F;&#x2F;pages.cloudflare-docs.workers.dev&#x2F;pages&#x2F;migrations" rel="nofollow">https:&#x2F;&#x2F;pages.cloudflare-docs.workers.dev&#x2F;pages&#x2F;migrations</a>
评论 #25333068 未加载
评论 #25330584 未加载
评论 #25331850 未加载
xchaoticover 4 years ago
I&#x27;ve played around with JAMstack - I&#x27;ve used Gatsby + Netlify to host&#x2F;deploy a static site generator. It works surprisingly well and has lot of JS based feature you wouldn&#x27;t expect from a &#x27;static&#x27; site like forms, uploads etc.<p>but I feel that as it matures, there are no prizes to being an early adopter - it looks like it&#x27;s getting better and easier to use and a lot of features that you had to code for in the past become configurations. So I am still in &#x27;wait and see mode&#x27;.
Existenceblinksover 4 years ago
Is the web <i>page</i> economy larger than <i>app</i>? These JAM stuff are out of control.<p>My theory is that more people coming to tech industry, and the base of pyramid is web pages up to web apps. Because all people want to have their personal site and blog. Tiny amount of people want to build application; it&#x27;s surely harder. Numbers of app makers are just a few.<p>Tech community on social media is flood with tech that&#x27;s for building these pages. And when people are hooked, they want to use this hammer for everything.
评论 #25331903 未加载
lolcoolkatover 4 years ago
I&#x27;m hoping this issue (<a href="https:&#x2F;&#x2F;github.com&#x2F;cloudflare&#x2F;wrangler&#x2F;issues&#x2F;1553" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;cloudflare&#x2F;wrangler&#x2F;issues&#x2F;1553</a>) is addressed by the time they release Pages :( Excited for Pages however!
adspediaover 4 years ago
Here are more details and a beta signup form that we have just launched: <a href="https:&#x2F;&#x2F;blog.cloudflare.com&#x2F;cloudflare-pages&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.cloudflare.com&#x2F;cloudflare-pages&#x2F;</a>
throwawayseaover 4 years ago
What is Cloudflare&#x27;s content policy today? In the last few years they abandoned their prior commitment to free speech and decided to start deplatforming paying customers (<a href="https:&#x2F;&#x2F;blog.cloudflare.com&#x2F;tag&#x2F;freedom-of-speech&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.cloudflare.com&#x2F;tag&#x2F;freedom-of-speech&#x2F;</a>). As someone who cares deeply about protecting practical, real-life access that allows people to exercise their right to free speech meaningfully, it&#x27;s important that platform and infrastructure providers also maintain a pro-free-speech stance. If Cloudflare is not that, I don&#x27;t see why I would trust them with even more power and even more control over access to content on the Internet.
vfclistsover 4 years ago
Available for free until Cloudflare decides that you are in violation of your their terms of service because you wore a MAGA hat (seriously lame) or expressed doubt about vaccines, after which it won&#x27;t be available to you for love or for money.
评论 #25328671 未加载