Can I send a Webhook to a hosting service other than KurocoFront?
Yes, it is possible.
Please use the Smarty plugin {api} to send requests to external services.
You can define the Webhook destination URL and request content in a custom process, and adjust the timing of sending by setting the desired trigger.
This allows you to automatically trigger builds at any desired timing, such as after content updates, even when hosting with services other than KurocoFront.
How to send a Webhook triggered by content updates
Adjusting the request content
For example, to send a Deploy Hook to Vercel, write the following code in a custom process.
Please refer to Vercel's documentation to generate the endpoint URL on the Vercel side.
{api
endpoint='https://api.vercel.com/v1/integrations/deploy/prj_******************'
method="POST"
var=response
status_var=status
}
{logger msg1="vercel deploy" msg2=$response}
Setting the Webhook Sending Timing
Set the trigger to [After Content Update] for the added custom process.
If you input 1
in the box next to the name, content with Content Definition ID=1 will be targeted by the trigger.
With this setting, when the targeted content is updated, a Deploy Hook will be sent to Vercel, and the build will automatically start.
For the list of available triggers, please refer to the following:
Major Hosting Services
When using other hosting services, please configure a custom process to send a Webhook in a similar manner.
Hosting Service | Feature Name | Official Documentation Link |
---|---|---|
Vercel | Deploy Hook | Official Documentation |
Netlify | Build Hook | Official Documentation |
Cloudflare Pages | Deploy Hook | Official Documentation |
GitHub Pages | Webhook | Official Documentation |
Firebase Hosting | REST API | Official Documentation |
AWS Amplify | Incoming Webhook | Official Documentation |
Webhooks can be used not only for deployment purposes to hosting services but also for sending notifications to any service such as Slack, Chatwork, or Discord.
Related Documents
Support
If you have any other questions, please contact us or check out Our Slack Community.