Added Revalidate clause for incremental static page generation

This commit is contained in:
James Purser 2022-06-13 13:13:11 +10:00
parent 9141c18579
commit 9bd6f8daac

View file

@ -50,7 +50,8 @@ export async function getStaticProps(context) {
// const tadfirstitem = tadfullfeed.items[0] // const tadfirstitem = tadfullfeed.items[0]
return { return {
props: { article, pagedata, config: serverRuntimeConfig, firstimage}, // will be passed to the page component as props props: { article, pagedata, config: serverRuntimeConfig, firstimage},
revalidate: 60 // will be passed to the page component as props
} }
} }