Documentation of new Function format for "Event" functions

The documentation for ‘event functions’ (Trigger functions on events | Netlify Docs) discusses how to name your functions, and says that the request body will contain information about the event. I’ve got a deploy-succeeded.js built, it runs, but req.body is empty.

Where does one find the event data?

Figured out and it’s obvious - use

let data = await req.json();

And it’s in the payload object.

Hey there @cfjedimaster

Thanks for sharing the solution here.