News for hackers. Stuff that matters.
Re:Backend for Front-end by warent on Wednesday September 21, 2022 @12:41AM (#32920859)
Indeed we see this even comes for free with some stacks like Next.js, in which you can define an api (BFF) to interface with the primary backend.

On the surface may sound weird but in practice has actually been pretty great when used mindfully.

Re:Backend for Front-end by gherkinnn on Wednesday September 21, 2022 @06:25AM (#32923043)
I wish Next.js talked about this some more and beefed up their API routes.

Writing your BFF in the same codebase, sharing types, and parsing incoming data on the server without filling up the client bundle is a fab experience.

Re:Backend for Front-end by roci89 on Wednesday September 21, 2022 @06:08AM (#32922912)
We use Remix in this way. Making calls to multiple endpoints on link prefetch is fantastic for speed
Re:Backend for Front-end by antifa on Wednesday September 21, 2022 @09:52PM (#32933979)
Nuxt3 will have this feature, they call it "nitro" and it uses the npm library called h3 (as opposed to expressjs) under the hood.