Open duncanista opened 1 year ago
This issue is also affecting build with a different runtime as node or no runtime set at provider level.
The plugin throws a hard assertion if the runtime-provider is empty, although the functions have a valid runtime set.
It should be easy to solve.
@duncanista this should be considered a bug because it breaks deployments. The title is just missleading.
Same for me; I want to use esbuild with just a single lambda. Most lambdas in my app are using a custom docker image (mostly Python).
I'm a few versions behind and was trying to upgrade. this use to work on v1.34.0. v1.35.0 seems to have broken this functionality.
Same problem here. esbuild is a dependency from another module. We don't use it directly since our provider runtime is python. V1.35.0 broke our build with assertIsSupportedRuntime(providerRuntime);
Problem
Currently, you can only build for runtimes at the provider level.
If I want to build multiple functions with different runtimes, I have to create another
serverless.yml
file, which is not convenient.Proposed solution
I would like to build multiple functions with multiple runtimes. Getting the runtime from the function level.
Currently, this throws the following error:
Alternatives considered
Maybe also use the provider as a fallback?
Additional context
serverless
serverless-esbuild
node
.