A Prismic Webhook allow you to automatically or manually trigger a deployment process in Netlify or Vercel if any post is published or unpublished OR for any other events in Prismic.
Webhooks are the events that are triggered whenever a change is published on your Prismic repository and the API is updated.
Deploy Hook | Vercel
- Copy the webhook URL you created in Vercel in the URL field of the Prismic webhook
- The Secret field is optional in the Prismic webhook. If you set it, Prismic will send the content to your server, so that you can verify that the request is coming from prismic.io.
- After successful creation of the webhook, you can manually trigger it and can also see the logs.
Prismic Webhook will be triggered automatically based on the triggers you selected when you created the webhook.
That's it! If you followed the above steps and successfully created a Prismic webhook, it should trigger the deploy hook which will start the build process in Vercel or any platform where you created the deploy hook.
If you have any questions, please post them in the comments section.