Vercel takes ages to ISR from Sanity
My NextJS app deployed on Sanity has some data in the footer that's common on all pages. The footer data can be updated from Sanity incrementally. I have
revalidate: 10
set inside the getStaticProps
however it takes more or less 10 years for the data to update on the footer after I change it in Sanity.
Anyone got an idea what the issue could be? I don't think it's being cached in the browser locally because I've tried it on other devices + incognito + clear storage.
Thanks!11 Replies
isr works like
as for the footer
cant you make it on client side load? cuz it will be at the bottom of the page
While initializing the sanity client do you have useCdn: false? If not maybe this could be the reason
@alex289 yup its false
wouldn't that be bad for SEO purposes?
its a footer
seo you configure on the page metadata
does google not crawl for all site links/sitemap?
Learn | Next.js
Production grade React applications that scale. The world’s leading companies use Next.js by Vercel to build pre-rendered applications, static websites, and more.
next does have some posts about seo
specific to next
Thanks I will have a look, but back to the original question, any idea why its taking a few hours to see the sanity changes on nextjs?
are you using pages directory?
How long is it actually taking? 30-60 seconds is the norm for us