H4ad / serverless-adapter-examples

Working examples to show how to integrate with https://github.com/H4ad/serverless-adapter
https://viniciusl.com.br/serverless-adapter
MIT License
12 stars 0 forks source link

feature: better examples #1

Closed H4ad closed 2 years ago

H4ad commented 2 years ago

The current structure of examples is very bad and it doesn't help at all to know how to integrate with serverless-adapter.

So I'm going to change the folder structure to a better one.

Progress:

H4ad commented 2 years ago

I'll merge as is now, but I'll still work on adding examples for other apps.

jaaop commented 1 year ago

@H4ad first of all, thank you for your great work!

Would you have an example of how to access the APIGateway event & context from Nest.JS? Shoudn't it come through the @Req param?

Thanks!

H4ad commented 1 year ago

@jaaop Thanks for the kind words!

About event & context, the event is sent in the body and you can access it in ŕeq.body, but the context is only available by getCurrentInvoke, which also exposes the event if you want the raw event.