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,