webhook to rebuild service
Hi
I have one project:
Mongo, PayloadCMS + storage, Nextjs
I want to trigger nextjs rebuild after any change on PayloadCMS. Perfectly using http request to trigger.
Any idea how can I do that?
3 Replies
Project ID:
f1ffdfca-0eb5-4966-b060-cd7eb7df4fed
project ID - f1ffdfca-0eb5-4966-b060-cd7eb7df4fed
you would need to use railways api to trigger a rebuild
https://docs.railway.app/reference/public-api
you could use the
deploymentRestart
or the serviceInstanceRedeploy
mutations, whatever suits your needs