Skip to content

Commit 1945614

Browse files
committed
fix: properly respect serveCommand in local executor
It looks like we didn't respect the `serveCommand`. This commit fixes this.
1 parent 98b921d commit 1945614

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

runner/orchestration/executors/local-executor.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,11 @@ export class LocalExecutor implements Executor {
199199
}
200200

201201
getServeCommand(): string {
202-
const flags = '--port 0';
202+
if (this.config.serveCommand !== undefined) {
203+
return this.config.serveCommand;
204+
}
203205

206+
const flags = '--port 0';
204207
// npm needs -- to pass flags to the command.
205208
if (this.config.packageManager === 'npm') {
206209
return `npm run start -- ${flags}`;

0 commit comments

Comments
 (0)