From 5713e340e4d4d79b07bae770ee4e4431377f31d7 Mon Sep 17 00:00:00 2001 From: smacpherson64 Date: Wed, 24 Aug 2022 11:17:42 -0500 Subject: [PATCH] Adjusts the location open uses Currently when using open, the cli will ignore the host and protocol and always open `http://localhost`. This pr adjusts the open script to use the options protocol and host and default back to localhost if not provided. --- packages/redux-devtools-cli/src/bin/openApp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/redux-devtools-cli/src/bin/openApp.ts b/packages/redux-devtools-cli/src/bin/openApp.ts index 99a9cd39..556c2e5b 100644 --- a/packages/redux-devtools-cli/src/bin/openApp.ts +++ b/packages/redux-devtools-cli/src/bin/openApp.ts @@ -33,7 +33,7 @@ export default async function openApp(app: true | string, options: Options) { } await open( - `http://localhost:${options.port}/`, + `${options.protocol}://${options.host ?? 'localhost'}:${options.port}/`, app !== 'browser' ? { app: { name: app } } : undefined ); }