Fix webpack-dev-server startup

Signed-off-by: Tomasz Szuba <tszuba@box.com>
This commit is contained in:
Tomasz Szuba
2024-03-15 14:37:08 +01:00
parent 7ead87dec0
commit 2d810ef89a
+7 -4
View File
@@ -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,