I have a blog created with Nextjs and hosted on Vercel where I'm using Incremental Static Regeneration. I set the revalidate time to 60 seconds but when I update something in the database, If i'm not wrong after a request when revalidate time pass it should start rebuilding the page in the background so on the next requests the page would be updated, but that does not happen, even if I wait 10 minutes the content keep being the old, it does not look like a rebuild is happening at all, this is the code I am using on the mentioned page
export const getStaticProps: GetStaticProps = async ({ params }) => {
const { id } = params;
const result = await getPost(id?.toString()!);
const parsed = await parseMarkdown(result.content);
return {
props: {
post: result,
md: parsed,
},
revalidate: 60,
};
};
export const getStaticPaths: GetStaticPaths = async () => {
const result = await getAllPosts();
const paths = result.data.map((post) => {
return {
params: { id: post.id },
};
});
return {
paths,
fallback: "blocking",
};
};