From b4cccf09e49923dda08b94db304dd163fa345860 Mon Sep 17 00:00:00 2001 From: remin Date: Tue, 16 Jan 2024 11:39:40 +0900 Subject: [PATCH] feat: refer to `HOST` environment variable when opening browser --- packages/wb/src/scripts/execution/baseExecutionScripts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/wb/src/scripts/execution/baseExecutionScripts.ts b/packages/wb/src/scripts/execution/baseExecutionScripts.ts index 584d7b36..02712e32 100644 --- a/packages/wb/src/scripts/execution/baseExecutionScripts.ts +++ b/packages/wb/src/scripts/execution/baseExecutionScripts.ts @@ -83,6 +83,6 @@ export abstract class BaseExecutionScripts { project, argv, port - )} || wait-on http://127.0.0.1:${port} && open-cli http://localhost:${port}`; + )} || wait-on http://127.0.0.1:${port} && open-cli "http://\${HOST:-localhost}:${port}"`; } }