Can ISR only build new pages?
Answered
Japanese cockle posted this in #help-forum
Japanese cockleOP
Hello, so I'm wondering if ISR could only build the pages that aren't already built. For example, if a have the route /blog/[blogId] and in the generateStaticParams I search in my cms db the ids of every blog, for example 1, 2 and 3. Can I make it so that the next time it revalidates and runs the same cms query and for example it gets the ids 1, 2, 3, 4 and 5, only builds the 4 and 5 and keeps the other 3 from cache?
Answered by Arinji
If the page wasn't built on build time, it will get server rendered then cached
4 Replies
That's not possible..
Nextjs will always build all your pages
If the page wasn't built on build time, it will get server rendered then cached
Answer
@Arinji If the page wasn't built on build time, it will get server rendered then cached
Japanese cockleOP
Okay, thanks