Skip to content

Commit 153786e

Browse files
committed
fix: change order of stage resolution
1 parent fb170d4 commit 153786e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ class ServerlessStepFunctionsLocal {
1212

1313
this.log = serverless.cli.log.bind(serverless.cli);
1414
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) {
15+
16+
if (this.service.stage !== undefined) {
1917
this.stage = this.service.stage;
18+
} else if (this.service.provider !== undefined && this.service.provider.stage !== undefined) {
19+
this.stage = this.service.provider.stage;
2020
} else {
2121
this.stage = 'dev';
2222
}

0 commit comments

Comments
 (0)