Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

138
Views
Content is not being updated after revalidate time in Nextjs

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",
  };
};

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!