hello everyone!
I’m pretty close to finish the “Strapi Hooks” article I’ve been writing for the last couple of months.
It’s a review and comparison on the three different types of hooks in Strapi:
- Content Type (lifecycle) hooks
https://strapi.io/documentation/v3.x/concepts/models.html#lifecycle-hooks - Server hooks
https://strapi.io/documentation/v3.x/concepts/hooks.html#structure - Webhooks
https://strapi.io/documentation/v3.x/concepts/webhooks.html#what-is-a-webhook
There’s just one section that I’m looking to improve, which is: providing interesting use case examples
for each type of hook.
As I don’t have enough material about this topic, thought I’d reach out to the community in search for
cool use cases where you may have used hooks in a project (or not, it could just be anything that occurs to you).
Let me kickstart the conversation with what I have so far:
-
Server hooks
Integrating with third-party services/APIs, for instance the npm packages:
strapi-hook-twitter - npm
strapi-hook-algolia - npm -
Webhooks
Trigger CI/CD operations when a certain event occurs in Strapi’s context, for instance rebuilding a static site when content changes in Strapi (from this Strapi webinar by Charles Ouellet)
Jamstack E-commerce with Nuxt, Strapi and Snipcart | Strapi Online Meetup - YouTube
All suggestions are very welcome
Thanks!