Preview:
const isUsingCustomSSL = (customHostname: CustomHostname): boolean => {
  if (
    !customHostname.ssl?.certificate_authority ||
    customHostname.ssl.certificate_authority !== 'digicert'
  ) {
    return true
  } else {
    const certificates = customHostname.ssl.certificates || []
    return !!(
      certificates.length && certificates[0]['issuer'] !== 'CloudflareInc'
    )
  }
}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter