News for hackers. Stuff that matters.
Re:Blitz: A Fullstack React Framework, Built on Next.js by pixel_tracing on Sunday June 06, 2021 @02:16PM (#27415039)
Hmm forgive my ignorance but isn’t having server side code in the client side a high risk security vulnerability?
Re:Blitz: A Fullstack React Framework, Built on Next.js by lioeters on Sunday June 06, 2021 @05:20PM (#27416447)
If I understand correctly, there's some magic involved during compilation, to replace such server-side code imported by the frontend with an API call.

> The new Blitz data layer is a novel technology for eliminating the API while retaining client-side rendering.

> In a Blitz app, you can import your server code directly into the frontend so you don't need to build an API and do data fetching from the frontend.

> At build time, Blitz automatically inserts an API call that runs the server code on the server. Essentially, Blitz abstracts your API into a compile step.