We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dc4be8a + eed3382 commit 6a3b996Copy full SHA for 6a3b996
index.js
@@ -106,7 +106,7 @@ class ServerlessWebpack {
106
'after:package:createDeploymentArtifacts': () => BbPromise.bind(this).then(this.cleanup),
107
108
'before:deploy:function:packageFunction': () => {
109
- const runtime = this.serverless.service.getFunction(this.options.function).runtime;
+ const runtime = this.serverless.service.getFunction(this.options.function).runtime || this.serverless.service.provider.runtime || 'nodejs';
110
111
if (isNodeRuntime(runtime)) {
112
return BbPromise.bind(this)
0 commit comments