'Contentful + Azure static web apps trigger deployment

I have a next.js application on Azure static web apps. I've got it building on commit to github (via github actions). Next task is for changes on contentful to trigger a build on Azure.

Am pretty new to Azure, can anyone advise how I do this?



Solution 1:[1]

Contentful provides the ability to use webhooks, these are URLs to hit when content is changed. Using these you can use a webhook trigger in the github action to trigger the build and inturn the deploy.

https://www.contentful.com/developers/docs/concepts/webhooks/
https://kontent.ai/blog/how-to-trigger-github-action-using-webhook-with-no-code/

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1