How is the webhook setup in a template from Sanity team #5235
-
Hello, I've set up a template from Sanity (https://github.com/sanity-io/template-nextjs-personal-website). The template works great, thank you (!) ... but I'm wondering how is the webhook set? I expected it to find it in "GROQ-powered Webhooks" in Sanity panel but it's not there, yet what it is responsible for (revalidation) works perfectly. Could someone explain how is it able to update server components by triggering the api/revalidate route? Thanks for clarifying. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey, @szymonhernik I wrote an article explaining these concept. Do give it a read: https://victoreke.com/blog/sanity-webhooks-and-on-demand-revalidation-in-nextjs |
Beta Was this translation helpful? Give feedback.
Hey, @szymonhernik I wrote an article explaining these concept. Do give it a read: https://victoreke.com/blog/sanity-webhooks-and-on-demand-revalidation-in-nextjs