Skip to content

Commit 6a3b996

Browse files
authored
Merge pull request #944 from mostthingsweb/patch-1
2 parents dc4be8a + eed3382 commit 6a3b996

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class ServerlessWebpack {
106106
'after:package:createDeploymentArtifacts': () => BbPromise.bind(this).then(this.cleanup),
107107

108108
'before:deploy:function:packageFunction': () => {
109-
const runtime = this.serverless.service.getFunction(this.options.function).runtime;
109+
const runtime = this.serverless.service.getFunction(this.options.function).runtime || this.serverless.service.provider.runtime || 'nodejs';
110110

111111
if (isNodeRuntime(runtime)) {
112112
return BbPromise.bind(this)

0 commit comments

Comments
 (0)