ISR - Are built pages preserved from one build to another?
Answered
English Spot posted this in #help-forum
English SpotOP
I'm curious about the following scenario:
1. Build of apps/web is deployed to Vercel
2. Page is requested at
3. A new build and deploy of apps/web is done.
4. A request to
Will NextJS serve the pre-generated page from the previous build or do all routes basically get invalidated during a new build?
1. Build of apps/web is deployed to Vercel
2. Page is requested at
/blog/post-123 and is generated with ISR.3. A new build and deploy of apps/web is done.
4. A request to
/blog/post-123 happens again.Will NextJS serve the pre-generated page from the previous build or do all routes basically get invalidated during a new build?
Answered by Brown bear
during a new build and deploy, Next.js will invalidate all the ISR pages, but it will continue to serve the pre-generated pages from the previous build until the
revalidate time has elapsed. Once the revalidate time has elapsed, the next request will trigger a new generation of the page using the latest data and code from the new build.4 Replies
Brown bear
during a new build and deploy, Next.js will invalidate all the ISR pages, but it will continue to serve the pre-generated pages from the previous build until the
revalidate time has elapsed. Once the revalidate time has elapsed, the next request will trigger a new generation of the page using the latest data and code from the new build.Answer
English SpotOP
Ok thank you is there any documentation confirming that?
Brown bear
No have doc
just from experienced