File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,9 @@ export default class Browser extends Hookable {
44
44
}
45
45
46
46
if ( key === 'staticserver' ) {
47
- this . config . staticServer = true
47
+ if ( ! this . config . staticServer ) {
48
+ this . config . staticServer = true
49
+ }
48
50
continue
49
51
}
50
52
Original file line number Diff line number Diff line change @@ -35,9 +35,8 @@ export default class StaticServer {
35
35
36
36
app . use ( StaticServer . serveStatic ( config . folder ) )
37
37
38
- let { host, port } = config
39
- host = process . env . HOST || host || 'localhost'
40
- port = process . env . PORT || port || 3000
38
+ const host = process . env . HOST || config . host || 'localhost'
39
+ const port = process . env . PORT || config . port || 3000
41
40
42
41
StaticServer . server = app . listen ( port , host )
43
42
You can’t perform that action at this time.
0 commit comments