From c7fdb52af475e4e1eb3546622ef7811871a4b9d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=87=E8=94=BA?= Date: Wed, 3 Jun 2020 16:16:51 +0800 Subject: [PATCH] fix: consist url to open in browser with https option --- src/node/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/cli.ts b/src/node/cli.ts index d790b08e3b298d..2ac42ef96a77c8 100644 --- a/src/node/cli.ts +++ b/src/node/cli.ts @@ -163,7 +163,7 @@ async function runServe(options: UserConfig) { require('debug')('vite:server')(`server ready in ${Date.now() - start}ms.`) if (options.open) { - require('./utils/openBrowser').openBrowser(`http://localhost:${port}`) + require('./utils/openBrowser').openBrowser(`${protocol}://localhost:${port}`) } }) }