3 ms·
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 backe
by technobabbler 5y ago
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.
- WORMS_EAT_WORMS 5y agoAgree. 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/ https://blog.cloudflare.com/building-full-stack-with-pages/
- whiskypeters 5y agothere is https://github.com/flareact/flareact 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
- DoctorOW 5y agoThis is the first thing I thought of as I was reading the server side section
- technobabbler 5y agoSaw 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!
- nevikashah 5y agoThanks 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!