grant icon indicating copy to clipboard operation
grant copied to clipboard

Provide a handler for Netlify functions

Open gearoidgit opened this issue 3 years ago • 2 comments

It seems I can force the AWS handler to work for Netlify by setting the event.version = '1.0' in the function but I have not done extensive testing to see if other required event properties that are missing will cause problems. Having a Netlify specific handler would be nice. Netlify's functions run on AWS.

gearoidgit avatar Apr 21 '21 14:04 gearoidgit

Thanks, that's a good suggestion. That was the exact reason why I decided not to create an explicit handler for Netlify, but I can do some testing on my own and see how that goes.

simov avatar Apr 22 '21 06:04 simov

For reference I just set the event.version in my functions

exports.handler = async (event) => {
...
event.version = '1.0'
...
}

gearoidgit avatar Jul 02 '21 15:07 gearoidgit