I am currently exploring Nextjs and building a website with the same framework. The website has a public flow, protected routes (such as user dashboard, user project details, and general user data) , and product pages.
The question is, how do i choose between SSG and SSR a particular route. This has been my strategy so far
- All static pages (forms, user input) - SSG
- BLOG links to be all SSG
My questions are:
The dashboard and the user details pages will not real time data, but data that might have project specific info. Is this a use case SSG with incremental revalidation, or SSR?
The publicly available product details pages. There might be upwards of a thousand products. In such cases, does the long build process of pre rendering the product pages outweigh the potential seo benefits? Because this seems like an ideal case for SSG with revalidation. Or is it best suited for SSR?
Thanks in advance!