From 03909b584b60fec1058e265fa2ed09317ea153ed Mon Sep 17 00:00:00 2001 From: James <5511220+Zamiell@users.noreply.github.com> Date: Thu, 26 May 2022 03:43:41 -0400 Subject: [PATCH] adding ci check --- packages/docusaurus/src/commands/serve.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docusaurus/src/commands/serve.ts b/packages/docusaurus/src/commands/serve.ts index 0b0486ea8433..0eb24b677f1b 100644 --- a/packages/docusaurus/src/commands/serve.ts +++ b/packages/docusaurus/src/commands/serve.ts @@ -82,7 +82,7 @@ export async function serve( logger.success`Serving path=${buildDir} directory at: url=${url}`; server.listen(port); - if (cliOptions.open) { + if (cliOptions.open && !process.env.CI) { openBrowser(url); } }