Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a handler for Netlify functions #243

Open
gearoidgit opened this issue Apr 21, 2021 · 2 comments
Open

Provide a handler for Netlify functions #243

gearoidgit opened this issue Apr 21, 2021 · 2 comments

Comments

@gearoidgit
Copy link

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.

@simov
Copy link
Owner

simov commented Apr 22, 2021

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.

@gearoidgit
Copy link
Author

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants