From 2d810ef89a872324b499d578c80b6b415ca0f77f Mon Sep 17 00:00:00 2001 From: Tomasz Szuba Date: Fri, 15 Mar 2024 14:37:08 +0100 Subject: [PATCH] Fix webpack-dev-server startup Signed-off-by: Tomasz Szuba --- packages/cli/src/lib/bundler/server.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/cli/src/lib/bundler/server.ts b/packages/cli/src/lib/bundler/server.ts index 974eddb35f..ea0e6e8b94 100644 --- a/packages/cli/src/lib/bundler/server.ts +++ b/packages/cli/src/lib/bundler/server.ts @@ -246,13 +246,16 @@ DEPRECATION WARNING: React Router Beta is deprecated and support for it will be // The index needs to be rewritten relative to the new public path, including subroutes. index: `${config.output?.publicPath}index.html`, }, - https: + server: url.protocol === 'https:' ? { - cert: fullConfig.getString('app.https.certificate.cert'), - key: fullConfig.getString('app.https.certificate.key'), + type: 'https', + options: { + cert: fullConfig.getString('app.https.certificate.cert'), + key: fullConfig.getString('app.https.certificate.key'), + }, } - : false, + : {}, host, port, proxy: targetPkg.proxy,