-
Notifications
You must be signed in to change notification settings - Fork 416
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
Packaging bug when using nodejs based custom runtime #664
Comments
Ok, I have manage to reproduce it. https://github.com/MatteoGioioso/serverless-webpack-bug |
Ok, this is not really a bug: serverless-webpack/lib/validate.js Line 104 in 69dfc3f
You just do not allow any other runtime other than So this will turn into a question. How can I include in the serverless-webpack plugin my function with custom runtime?
Sorry for the monologue =) |
Can we have this as a feature? If there is no other workaround of course. This is the proposed change, not sure you will like it or not. We add an additional property to allow a custom runtime only if the user set this to
And then add another check:
Let me know what you think, on my fork this is already done and tested. |
Maybe We'll also need to write that down in the doc that you know what you are doing when using that option. |
@j0k3r ok, I can update the docs as well in the same PR if you guys need |
@j0k3r ok, I have made a PR for this! |
This is a Bug
Description
I am trying to have a custom runtime for one of my lambda function. However when I specify
runtime: provided
webpack is not packaging my function as expected. Instead is packaging the whole project including all the other functions.If my runtime is not provided (just standard nodejs) then the packaging is correct.
Without webpack plugin it works fine as well.
I have a repro case here: https://github.com/MatteoGioioso/serverless-webpack-bug
Additional Data
Webpack configuration
Serverless.yaml simplified
If I have time I will make a repro case, but I think that should be it for the time being.
PS: The custom runtime is nodejs in this case
Thanks
The text was updated successfully, but these errors were encountered: