Hacker News new | ask | show | jobs
by mikeyhew 1809 days ago
I'm trying to understand how this tutorial works, I noticed it doesn't make any network requests when run one of the examples, but then if I edit the code in an example it does make a request. Is this the magic of next.js and server-side components at work, and do you have a real edgedb running on the server side that is used to pre-render the page and also handle updates? I would love to hear more about how this setup works and even look at the code if it's available.
1 comments

You guessed everything right: we run an instance to prerender and cache at the build time and at runtime we query when the query has been changed