News for hackers. Stuff that matters.
Re:Cloudflare Pages goes full stack by technobabbler on Wednesday November 17, 2021 @10:05AM (#29253987)
It's really exciting to see Cloudflare Pages keep progressing!

Any plan to eventually offer drop-in support for Next.js? (Not just static builds, but the backend server/serverless functions too, like Vercel... maybe mapping certain APIs to Workers?). It would be lovely to be able to leverage the power of that framework on Cloudflare infrastructure.

Edit: Next and frameworks like it solve the "I love the idea of serverless, but don't want to reinvent the whole backend from scratch" problem. It's nice to have a framework abstract away problems like routing, caching, invalidations, buildchains, image transformations, etc. Cloudflare Pages and Workers can do almost all the same things, but requires more coding and configuration... that's the only reason we went with Next + Vercel instead of Pages.

Re:Cloudflare Pages goes full stack by whiskypeters on Wednesday November 17, 2021 @12:20PM (#29255877)
there is https://github.com/flareact/flareact in development by a shopify engineer, worth checking out... seems like a good architecture for deeper integration with workers runtime
Re:Cloudflare Pages goes full stack by technobabbler on Wednesday November 17, 2021 @01:42PM (#29257079)
Saw this a few months ago and briefly considered it, but it seemed too risky to use on a production website.

Next.js is maintained by an entire company (Vercel). If Flareact ever gains official Cloudflare support, that'd be wonderful!

Re:Cloudflare Pages goes full stack by DoctorOW on Wednesday November 17, 2021 @01:30PM (#29256907)
This is the first thing I thought of as I was reading the server side section
Re:Cloudflare Pages goes full stack by WORMS_EAT_WORMS on Wednesday November 17, 2021 @11:12AM (#29254919)
Agree. Also, FWIW, what Cloudflare built is definitely a nice option. I would prefer even closer integration though and will be test driving this.

But… This is almost just like an index.html and api.php file on a server. I think what devs really need/want is the Svelte Kit adaptor but an official Cloudflare way.

Edit: Apparently the functions support parameterized files like .functions/friends/[name].js [1] which creates a lot closer integration. Put that feature front and center! I think this really solves many issues.

[1] https://blog.cloudflare.com/building-full-stack-with-pages/

Re:Cloudflare Pages goes full stack by nevikashah on Thursday November 18, 2021 @12:19PM (#29267898)
Thanks for bringing this up! It's definitely something that is on our radar. We're looking into improving the experience with frameworks, and Next is one of them!