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.
1 parent bffa0b0 commit fb170d4Copy full SHA for fb170d4
index.js
@@ -13,7 +13,7 @@ class ServerlessStepFunctionsLocal {
13
this.log = serverless.cli.log.bind(serverless.cli);
14
this.config = (this.service.custom && this.service.custom.stepFunctionsLocal) || {};
15
16
- if (this.service.provider.stage !== undefined) {
+ if (this.service.provider !== undefined && this.service.provider.stage !== undefined) {
17
this.stage = this.service.provider.stage;
18
} else if (this.service.stage !== undefined) {
19
this.stage = this.service.stage;
0 commit comments