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 8282287 commit 6a9d762Copy full SHA for 6a9d762
packages/devextreme-cli/testing/dev-server.js
@@ -7,13 +7,9 @@ const runCommand = require('../src/utility/run-command');
7
const { themes, swatchModes, baseFontFamily } = require('./constants');
8
9
module.exports = class DevServer {
10
- isNextJs() {
11
- return this.env.engine.indexOf('nextjs') === 0;
12
- }
13
-
14
constructor(env, { port }) {
15
this.env = env;
16
- this.server = this.isNextJs()
+ this.server = this.env.engine.startsWith('nextjs')
17
? new NextJsServer(this.env, { port })
18
: new WebServer();
19
}
0 commit comments