Blog

Prismic Webhooks

Oct 8, 2020 3 min read

Share Prismic Webhooks article on different platforms.

web-development

software-tool

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.

Prismic Webhooks

Prismic Webhooks

Webhooks are the events that are triggered whenever a change is published on your Prismic repository and the API is updated.

I use Vercel as the example and I guess it might be quite similar for Netlify or any other cloud service.

Steps:

  • Create a Deploy Hook in Vercel here. For more info, check here
Deploy Hook | Vercel

Deploy Hook | Vercel

Create a Prismic webhook here. For more info, check here.

Prismic Webhook

Prismic Webhook

  • 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.

Prismic Webhooks

Prismic Webhooks

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.

#skyisthelimit

If you have any questions, please post them in the comments section.

This article was last updated on Oct 8, 2020

Prismic

Webhooks

Vercel

Netlify

ShareShare this article on different platforms.

Sai Nikhil - Photo

Sai Nikhil

A passionate developer who brings creative ideas from areas, including networking & data storage, security, UI/UX design, and progressive web applications with a strong understanding of the entire web development process.

Related Articles

NextJS Prismic Blog Starter

Build a Blog using NextJS & Prismic

Learn and build a blog using NextJS Prismic Blog starter template as quickl... Read Full Article

web-development

Dec 1, 2020| 15 min read

Theme UI - Themes

Build custom themes using Theme UI

Build themes for any JavaScript application using Theme UI. Read Full Article

Oct 3, 2020| 5 min read

Weather React Application UI

Build a Weather Application Using React

This weather application provides current and 24 hour 7-day weather forecas... Read Full Article

Jul 31, 2020| 10 min read