"Next.js has two forms of pre-rendering: Static Generation and Server-side Rendering. The difference is in when it generates the HTML for a page."
Edit: next.js is a web server, right? Because how else can it do SSR?
Edit: Unintentional sarcastic reply from my side, it was a good question.