News for hackers. Stuff that matters.
Re:Next.js 12.2: Middleware, On-Demand ISR, Experimental Edg... by QuiiBz on Tuesday June 28, 2022 @12:54PM (#31910142)
I wonder if we can build a Next.js app with this new `edge-runtime` mode, and host it on any platform that supports `edge-runtime` [0] APIs (like Cloudflare Workers (I think Vercel uses it?) and Deno Deploy).

If yes, that's truly amazing. It'll empower more and more people to run stuff at the Edge. I'm also working on an open-source alternative to the above offers [1], so I would love to be able to run and support Next.js on it.

edit: formatting

[0]: https://edge-runtime.vercel.app/

[1]: https://github.com/lagonapp/serverless

Re:Next.js 12.2: Middleware, On-Demand ISR, Experimental Edg... by leerob on Tuesday June 28, 2022 @02:05PM (#31910955)
In the future, yes absolutely! Cloudflare is working on their support for hosting Next.js. And would be happy to chat with you about your solution.
Re:Next.js 12.2: Middleware, On-Demand ISR, Experimental Edg... by QuiiBz on Tuesday June 28, 2022 @02:12PM (#31911041)
Great news! Feel free to DM me on Twitter (@tomlienard) if you want to chat about this, as I also want to support Next.js in the future for my runtime.
Re:Next.js 12.2: Middleware, On-Demand ISR, Experimental Edg... by dbbk on Thursday June 30, 2022 @06:01PM (#31939246)
Is there any public mention of Cloudflare's work on this? I can't find anything
Re:Next.js 12.2: Middleware, On-Demand ISR, Experimental Edg... by steventey on Tuesday June 28, 2022 @11:57AM (#31909372)
Super excited for `next/future/image` & edge API routes – it's really gonna change up the game for frontend development!
Re:Next.js 12.2: Middleware, On-Demand ISR, Experimental Edg... by sph on Wednesday June 29, 2022 @02:47AM (#31917218)
You should probably mention you're on the Vercel team instead of sounding like an enthusiastic third party.

Calling out astroturfing is a no-no around here, but given you mostly only comment on Next.js news you should be more transparent about it.

Re:Next.js 12.2: Middleware, On-Demand ISR, Experimental Edg... by CSSer on Tuesday June 28, 2022 @07:00PM (#31914201)
It’s a welcome improvement. I don’t understand why image generation needs to be dynamic. Why not generate responsive variants during build time? These are likely not going to change.
Re:Next.js 12.2: Middleware, On-Demand ISR, Experimental Edg... by dbbk on Thursday June 30, 2022 @06:02PM (#31939263)
Any UGC needs to be dynamic
Re:Next.js 12.2: Middleware, On-Demand ISR, Experimental Edg... by akmittal on Tuesday June 28, 2022 @02:31PM (#31911276)
Wrapping image in div always seemed weird to me. Thankfully they are fixing that
Re:Next.js 12.2: Middleware, On-Demand ISR, Experimental Edg... by anaxag0ras on Wednesday June 29, 2022 @08:52AM (#31919455)
This. I've always hated working with Next Image.
Re:Next.js 12.2: Middleware, On-Demand ISR, Experimental Edg... by dbbk on Thursday June 30, 2022 @06:02PM (#31939251)
It was necessary because the aspect-ratio CSS property didn't exist before
Re:Next.js 12.2: Middleware, On-Demand ISR, Experimental Edg... by indemnity on Thursday June 30, 2022 @03:32AM (#31929663)
I know that I’m an edge case and that I’m losing half of the benefit of these modern stacks’ blurring the lines between client and server but I still wish I could use something like Next on the frontend but Rust/Go on the backend.
Re:Next.js 12.2: Middleware, On-Demand ISR, Experimental Edg... by cercatrova on Monday July 04, 2022 @02:32AM (#31974097)
> I still wish I could use something like Next on the frontend but Rust/Go on the backend.

You can, what's stopping you? Many use Next just like any other frontend and have their own backend servers in whatever language they want.