ISR Test #1

Returns a number from getStaticProps, with revalidation every 2 seconds.

Count

2

Code

export async function getStaticProps() {
  console.log('isr-1 getStaticProps running');

  return {
    props: {
      num: 2,
    },
    revalidate: 2,
  }
}

Local production build:

Logs every time getStaticProps runs

Vercel deployments:

Logs every time getStaticProps runs