Is it possible to trigger a build from a function?

I’m building a JAMstack eCommerce site that would fetch the data from an LMS system with the SSG. LMS system would trigger the “New course created” webhook that should do two things - create an entry in FaunaDB collection and, on success, trigger the Netlify build.

Could this build be triggered from within a function?


Look here:

Create a build hook and have the function POST to that URL.

1 Like

Thank you @AaronP for your time and effort.