3 ms·
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 ne
by lioeters 5y ago
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.