-
Notifications
You must be signed in to change notification settings - Fork 417
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
Take integration into account when using serve command #54
Comments
Below is the result of
|
thats great news! is there any chance you could open a PR on this? It would take a while for me to get up to speed on the matter. Anyhow this will probably be addressed in a v1.1 of this plugin. |
For sure, I should have some time over the next week to give it a crack. Sounds good! |
#53 This PR seems to be a start. |
|
Hey thanks for the great work with this!
Serverless have made Lambda Proxy Integration the default - see https://serverless.com/framework/docs/providers/aws/events/apigateway. This means that the full content of the HTTP request (headers, body, etc.) is passed to the Lambda function and the full response (headers, status code, body) must be returned from the Lambda function.
As far as I can see
serverless webpack serve
does not take this into account. This causes a mismatch between what the event object contains when running locally and when running on AWS. I'm using serverless-webpack in a project which uses the lambda-proxy integration and have worked around this by utilising NODE_ENV (e.g. https://github.com/jch254/serverless-es6-dynamodb-webapi/blob/master/src/handler.js#L125).It'd be great to support both integrations.
The text was updated successfully, but these errors were encountered: