Skip to content

Commit 6a9d762

Browse files
refactor
1 parent 8282287 commit 6a9d762

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/devextreme-cli/testing/dev-server.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,9 @@ const runCommand = require('../src/utility/run-command');
77
const { themes, swatchModes, baseFontFamily } = require('./constants');
88

99
module.exports = class DevServer {
10-
isNextJs() {
11-
return this.env.engine.indexOf('nextjs') === 0;
12-
}
13-
1410
constructor(env, { port }) {
1511
this.env = env;
16-
this.server = this.isNextJs()
12+
this.server = this.env.engine.startsWith('nextjs')
1713
? new NextJsServer(this.env, { port })
1814
: new WebServer();
1915
}

0 commit comments

Comments
 (0)