We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 935610a commit 21714a1Copy full SHA for 21714a1
nextjs/pages/blog/[id].tsx
@@ -76,5 +76,9 @@ export async function getStaticProps({ params }) {
76
props: {
77
post: postData.data.getPost,
78
},
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
83
};
84
}
0 commit comments