Merge pull request #3902 from backstage/rugvip/optional

backend-common: fix for backend.https being required
This commit is contained in:
Patrik Oldsberg
2021-01-04 11:49:18 +01:00
committed by GitHub
@@ -193,7 +193,7 @@ export function readCspOptions(
* ```
*/
export function readHttpsSettings(config: Config): HttpsSettings | undefined {
const https = config.get('https');
const https = config.getOptional('https');
if (https === true) {
const baseUrl = config.getString('baseUrl');
let commonName;