When we publish or unpublish content to a website, we typically want our website to update its contents automatically by rebuilding them. In this post, we will be going over Nimvio's webhooks feature, which allows us to automate the content rebuilding or deployment process. The way is Nimvio will send HTTP post requests after a user publishes or unpublish content in Nimvio. The request will be received by any deployment platform your website uses to trigger a new build. Once updated, your website will automatically reflect the changes.
Now the question is how to set up this helpful feature. Actually, the webhook is fairly straightforward to set up, though it does require some configurations within Nimvio and some others within your deployment platform. In this post, we will show you the way by using Amplify, Vercel, and Netlify as our deployment platform for example.
First off, we need to generate our webhook URL that will be used as the target for Nimvio to send the HTTP request. Be noted that in Nimvio, each project has its own webhook settings, so you will need to select the same project within your deployment platform as in Nimvio's
Follow these steps to generate a webhook URL using Netlify:
Follow these steps to generate a webhook URL using Amplify:
Follow these steps to generate a webhook URL using Vercel:
After having a webhook URL, you need to register it to Nimvio. To do so, you can just follow these simple steps.
Now, each time you publish or unpublish content in Nimvio, you'll see a new build happening within the deployment platform dashboard, pulling in your content and publishing it to your website automatically!
This is how Nimvio streamlines the content deployment process so that it can save you time to focus on your primary tasks and more important matters. If you are not using Nimvio, you can use it today to make this easiness happens. Please visit us at nimvio.com.
Great job! You have successfully set up a webhook that triggers a new website build every time you publish new content. Don't stop here, there are still more features to explore. Check them out below: