Currently, I am diving into Nextjs and constructing a website using this framework. The site includes both public pages, protected routes (like user dashboard, user project details, and general user data), as well as product pages.
I have been pondering how to decide between SSG and SSR for specific routes in my website. Here is my approach so far:
- All static pages (forms, user input) - SSG
- BLOG links to be all SSG
Now, here are my queries:
The dashboard and the user details pages do not require real-time data, but might contain project-specific information. Should these be handled with SSG and incremental revalidation, or with SSR?
When it comes to publicly available product detail pages, there could be potentially thousands of products. In such scenarios, is the lengthy build process of pre-rendering the product pages worth the SEO advantages? It seems like an ideal situation for SSG with revalidation, or maybe SSR would be more suitable?
Thank you for your help!