Hey @Crazyhorse
As per getStaticProps
documentation it is called at build time
If you export an
async
function calledgetStaticProps
from a page, Next.js will pre-render this page at build time using the props returned bygetStaticProps
.
It then goes on to mention
revalidate
- An optional amount in seconds after which a page re-generation can occur (defaults to:false
or no revalidating). More on Incremental Static Regeneration
The post Next.js ISR support gives a great explaination of Next.js ISR on Netlify. Remember that Netlify builds are immutable meaning
Immutable deployment – Guarantee the integrity of previous deploys by insulating them from future actions.
Hope this clears things up.