backend icon indicating copy to clipboard operation
backend copied to clipboard

why shim

Open hoang-innomize opened this issue 6 years ago • 3 comments

I had an issue when deployed on AWS related to shim dependency, is there any reason we use it? can it be optional?

hoang-innomize avatar Aug 29 '19 10:08 hoang-innomize

What was the issue? Maybe using aws-lambda component would be a better fit for you use case?

The shim doesn't do much, but it makes Lambda a bit more approachable since you only need to export a single mono function without having to worry about handlers, a lot like Micro.

eahefnawy avatar Sep 04 '19 10:09 eahefnawy

@eahefnawy I was tried to deploy a NestJS application and got an error when handling an API event, the error relates to shim.

The handler works well when I use native serverless with CloudFormation. So I think using shim should be configurable as well. That would be great. We don't need to worry about Micro when using NestJS

hoang-innomize avatar Sep 04 '19 10:09 hoang-innomize

@hoang-innomizetech what was the error? It seems to be a bug.

eahefnawy avatar Sep 04 '19 10:09 eahefnawy