File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ class ServerlessDynamodbLocal {
10
10
this . serverless = serverless ;
11
11
this . service = serverless . service ;
12
12
this . serverlessLog = serverless . cli . log . bind ( serverless . cli ) ;
13
- this . config = this . service . custom && this . service . custom . dynamodb || { } ;
14
13
this . options = options ;
15
14
this . provider = "aws" ;
16
15
this . commands = {
@@ -102,13 +101,13 @@ class ServerlessDynamodbLocal {
102
101
}
103
102
104
103
get port ( ) {
105
- const config = this . config ;
104
+ const config = this . service . custom && this . service . custom . dynamodb || { } ;
106
105
const port = _ . get ( config , "start.port" , 8000 ) ;
107
106
return port ;
108
107
}
109
108
110
109
get host ( ) {
111
- const config = this . config ;
110
+ const config = this . service . custom && this . service . custom . dynamodb || { } ;
112
111
const host = _ . get ( config , "start.host" , "localhost" ) ;
113
112
return host ;
114
113
}
@@ -155,7 +154,7 @@ class ServerlessDynamodbLocal {
155
154
}
156
155
157
156
startHandler ( ) {
158
- const config = this . config ;
157
+ const config = this . service . custom && this . service . custom . dynamodb || { } ;
159
158
const options = _ . merge ( {
160
159
sharedDb : this . options . sharedDb || true
161
160
} ,
You can’t perform that action at this time.
0 commit comments