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

Support async handlers #24

Merged
merged 1 commit into from
Apr 13, 2018
Merged

Conversation

leonardodino
Copy link
Contributor

Parity with aws async handler support for netlify-lambda serve.

@zoe-edwards
Copy link

I’ve uploaded a small repo that can be used for testing this.

@zoe-edwards
Copy link

zoe-edwards commented Apr 13, 2018

I’ve deployed the test site to Netlify and these are the endpoints:

The first one is pretty simple and works, obviously. The other two just respond with a 500, but no error shows in the logs.

@zoe-edwards
Copy link

Also, I uploaded the promised_land version to Lambda, and it works as expected:

lambda

@calavera
Copy link
Contributor

Awesome, thanks a lot for the changes and the examples @leonardodino and @ThomasEdwards. LGTM!

@calavera calavera merged commit d1e47ab into netlify:master Apr 13, 2018
@biilmann
Copy link
Member

Cut a new 0.4.0 release including this

@zoe-edwards
Copy link

Thanks! I've opened a new issue #29 because you still have to return the previous callback contents in the promise.

@leonardodino leonardodino deleted the serve-async branch August 30, 2018 10:50
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

Successfully merging this pull request may close these issues.

4 participants