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 fb170d4 commit 153786eCopy full SHA for 153786e
index.js
@@ -12,11 +12,11 @@ class ServerlessStepFunctionsLocal {
12
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 !== undefined && this.service.provider.stage !== undefined) {
17
- this.stage = this.service.provider.stage;
18
- } else if (this.service.stage !== undefined) {
+
+ if (this.service.stage !== undefined) {
19
this.stage = this.service.stage;
+ } else if (this.service.provider !== undefined && this.service.provider.stage !== undefined) {
+ this.stage = this.service.provider.stage;
20
} else {
21
this.stage = 'dev';
22
}
0 commit comments