Troubleshooting webhook setup for Gatsby site on Vercel with Sanity content changes
Last updated: Aug 28, 2020
Hi everyone! I'm deploying my Gatsby site on Vercel and trying to setup a webhook to rebuild the site whenever content on Sanity changes. I've setup a webhook as shown in the docs , but it doesn't seem to be firing? Any way to test if the webhook fires when content is published, changed, or deleted? I can confirm that using curl to send a post request does trigger a Vercel build, so the issue is likely not there or with the URL.
I've also tried using Manage and the CLI to create the webhook. Neither have worked.
Using "sanity hook logs" on the CLI either takes forever or there are no logs.
I've also tried rebuilding Sanity in case that was the issue.
Aug 28, 2020, 1:42 AM
Hi! We're looking into it. It’s a “it’s us, not you” situation 🙂
Aug 28, 2020, 7:43 AM
Thanks Knut! Saw your other message in the channel that it you were able to get it working. Just tested it myself and everything works as expected on my end. Thanks!