Skip to content

Commit 21714a1

Browse files
author
Alex Patterson
committed
allow for regen
1 parent 935610a commit 21714a1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nextjs/pages/blog/[id].tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,9 @@ export async function getStaticProps({ params }) {
7676
props: {
7777
post: postData.data.getPost,
7878
},
79+
// Next.js will attempt to re-generate the page:
80+
// - When a request comes in
81+
// - At most once every second
82+
revalidate: 1, // In seconds
7983
};
8084
}

0 commit comments

Comments
 (0)