Next.js Discord

Discord Forum

Any example project that triggers all page rendering patterns (SSR, ISR, SSG) and proves working?

Unanswered
Saltwater Crocodile posted this in #help-forum
Open in Discord
Saltwater CrocodileOP
I'm working to deploying Next.js in a few different ways with different infrastructure.

I'm not a serious Next.js user so don't have a great grasp of the different ways I can trigger Next.js to treat page rendering. I know (or I think I roughly know!) there are different ways to trigger different behaviors in Next.js, from fully static page generation at deployment, to server side rendering, to incremental page rendering / updates. I also know it's possible to fetch data directly from a data source / server with client side fetching / rendering.

I'm wondering if there is a sample / example Next.js project out there that might be useful for testing if all of these things are working with my infrastructure. It would probably be a good excercise for me to make this myself actually, but if something exists I might as well give it a shot. I'm just looking for something that might, for example, display timestamps or whatever when the page is rendered or in some other way clearly demonstrate my infrastracture is working to support all of Next.js features.

Thanks for any advice!

14 Replies

Chinese perch
Hi I have the same problem here
I need a way to build a bunch of routes that are static and the rest to be SSR using the new app folder
im working on one
in the mean time feel free to ask anything about ssr/isr/ssg
Chinese perch
I'm doing a PoC on html events (like click) on SSR, and then I realise my static pages won't be exported as HTMLs 😦
Chinese perch
@aardani that's the deal, the build output of this project has zero html files 😦
so for a usecase where you have an ecommerce website with half pages static and half SSR... I'm forced to have 2 projects
Chinese perch
because to get html files you need output: "export" then your SSR stuff doesn't work anymore
@Chinese perch because to get html files you need output: "export" then your SSR stuff doesn't work anymore
Can you make another thread for this? The original post is not talking about html exports.
Chinese perch
I have let me ping you in that one