From 9bd6f8daac5183d4f68da0edfb8b3f5824635430 Mon Sep 17 00:00:00 2001 From: James Purser Date: Mon, 13 Jun 2022 13:13:11 +1000 Subject: [PATCH] Added Revalidate clause for incremental static page generation --- pages/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/index.js b/pages/index.js index 0efeaba..649ce44 100755 --- a/pages/index.js +++ b/pages/index.js @@ -50,7 +50,8 @@ export async function getStaticProps(context) { // const tadfirstitem = tadfullfeed.items[0] 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 } }