Just a typo, you are not positioning the revalidate value correctly. See here:
return {
props: {
posts,
},
// Next.js will attempt to re-generate the page:
// - When a request comes in
// - At most once every 10 seconds
revalidate: 10, // In seconds <------
}
😇
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Just a typo, you are not positioning the
revalidate
value correctly. See here:😇