Next.js Discord

Discord Forum

Cache main page on first serve into html, with isr, but opt out of ssg

Unanswered
Russian Blue posted this in #help-forum
Open in Discord
Avatar
Russian BlueOP
I am using a CMS for rendering my main page and I want to avoid having to connect to the CMS during build time. I have content from CMS on my main page. When I cache requests and make it dynamic, it always runs React on every request. So the question is, how do I make it generate html cache on the server itself on first request without generating the page html during build time?
I am using app router.

1 Reply

Avatar
Russian BlueOP
I am able to opt out of it in dynamic routes but for static ones I'm not sure what to do