No need to do static generation at build time or fully server-side rendering with Next.js either, you can build static pages at runtime with ISR
https://nextjs.org/blog/next-9-5#stable-incremental-static-r...
(edit: whoops this was for the parent comment)