The docuemntation displays this code for an example serverless.json file:
// A serverless.json file configured
// for an API endpoint function
{
"runtime": "nodejs12.x",
"version": "1.0",
"endpoints": {
"path/to/endpoint": {
"file": "githubUserFunction.js"
}
}
}
That exact code fails to build unless you add a appFunctions property. It can be an empty object, but it must exist.
// A serverless.json file configured
// for an API endpoint function
{
"runtime": "nodejs12.x",
"version": "1.0",
"endpoints": {
"path/to/endpoint": {
"file": "githubUserFunction.js"
}
},
"appFunctions": {}
}