Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Next.js revalidation so posts update correctly #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

arcataroger
Copy link
Member

@arcataroger arcataroger commented Dec 19, 2023

It looks to me like the blog post wasn't getting correctly updated even after publishing & rebuilding, possibly due to the Next.js data cache.

All tests were done in new Incognito windows, with preview mode OFF.

Before

Blog.Example.with.DatoCMS.-.December.19.@.02-47-51.PM.mp4

After

Adding revalidate: 1 (in seconds) to our default fetchers seems to fix that for me.

image

image

@arcataroger arcataroger requested a review from matjack1 December 19, 2023 23:01
@arcataroger arcataroger self-assigned this Dec 19, 2023
Copy link

vercel bot commented Dec 19, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nextjs-demo ✅ Ready (Inspect) Visit Preview Dec 19, 2023 11:01pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant