3 ms·
Hmm forgive my ignorance but isn’t having server side code in the client side a high risk security vulnerability?
by pixel_tracing 5y ago
Hmm forgive my ignorance but isn’t having server side code in the client side a high risk security vulnerability?
- lioeters 5y agoIf 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.