How is the webhook setup in a template from Sanity team #5235
Answered
by
Evavic44
szymonhernik
asked this question in
Requests for comment (RFC)
-
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.
Answered by
Evavic44
Dec 16, 2023
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.
1 reply
Answer selected by
szymonhernik
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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