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
Neto
Neto3y ago
isr works like
Neto
Neto3y ago
as for the footer cant you make it on client side load? cuz it will be at the bottom of the page
Alex
Alex3y ago
While initializing the sanity client do you have useCdn: false? If not maybe this could be the reason
arkitos
arkitosOP3y ago
@alex289 yup its false wouldn't that be bad for SEO purposes?
Neto
Neto3y ago
its a footer seo you configure on the page metadata
arkitos
arkitosOP3y ago
does google not crawl for all site links/sitemap?
Neto
Neto3y ago
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.
Neto
Neto3y ago
next does have some posts about seo specific to next
arkitos
arkitosOP3y ago
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?
Neto
Neto3y ago
are you using pages directory?
benten
benten3y ago
How long is it actually taking? 30-60 seconds is the norm for us
Want results from more Discord servers?
Add your server