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 for Lambda@Edge #60

Open
rdsedmundo opened this issue Jul 5, 2021 · 3 comments
Open

Support for Lambda@Edge #60

rdsedmundo opened this issue Jul 5, 2021 · 3 comments

Comments

@rdsedmundo
Copy link

🚀 Feature Proposal

Add support for Lambda@Edge payload, serverless-express supports it.

This is pretty much just understanding its input/output, I believe no major changes would be required as it's somewhat similar to the regular integration.

Motivation

To have a unified interface between API Gateway and Lambda@Edge.

Example

Same as above.

@adrai
Copy link
Member

adrai commented Jul 5, 2021

I don't think it's a good idea to have a fastify server at lambda@edge, but feel free to contribute with a PR, if needed.

@rdsedmundo
Copy link
Author

It looks overkill at first sight, but you can build something really complex in Lambda@Edge, like https://github.com/serverless-nextjs/serverless-next.js (not saying that I'd use fastify for serverless-next.js, just an example).

Otherwise, you have to build the content parsing, routes with parameters, etc, etc, all on your own.

@adrai
Copy link
Member

adrai commented Jul 5, 2021

I'm personally not going to use fastify on lambda@edge, so feel free to try a PR with tests...

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