I am developing a website with nextjs, the changes in prismic show up immediately on localhost but do not show up on my hosted website on Vercel.
I am using a webhook to redeploy my website when there is a change in a document and the webhook seems to be working fine, it returns an 201 and triggers a deployment on vercel. The problem is that the changes I make do not make it to Vercel, so let's say for example when I publish a new document, it show up in my localhost, it triggers a deploy on Vercel but after the deploy is done on Vercel the document is still not there. Is there something I'm missing?
And yes I have looked at the FAQ article about it.
OK, I got some help from the experts and it seems you are rebuilding your whole site whenever content changes, but not invalidating the Next.js fetch() cache. As a result, all network requests will continue returning stale data.
Rather than rebuild your whole site when content changes, you should be clearing the fetch() cache using on-demand revalidation.
The “Set up on-demand revalidation” section of this blog post explains how to set it up:
I followed the tutorial and by the looks of it I had everything configured correctly, I did not have the webhook tho, now I created the webhook, it is returning 405 error, any idea what could be causing that?
Same here, localhost shows changes and incognito and production doesn't show changes. ONLY when i press: live preview, when exit from live preview the production shows first deployment data.