Returns a number from getStaticProps, with revalidation every 2 seconds.
2
export async function getStaticProps() {
console.log('isr-1 getStaticProps running');
return {
props: {
num: 2,
},
revalidate: 2,
}
}
Logs every time getStaticProps runs
Logs every time getStaticProps runs