From 5c0f10baa844054bb50097ae4c9e51d87257508e Mon Sep 17 00:00:00 2001 From: remin Date: Tue, 16 Jan 2024 12:31:17 +0900 Subject: [PATCH] feat(wb): refer to `HOST` environment variable when opening browser (#218) --- 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}"`; } }