diff --git a/src/node/server.js b/src/node/server.js index 20265e9..b05ead5 100644 --- a/src/node/server.js +++ b/src/node/server.js @@ -142,7 +142,7 @@ export default async function initWebServer({ }) let server - if (protocol === 'https:') { + if (protocol === 'https:' && certDir) { const { key, cert } = await simpleCert({ dataDir: certDir, commonName: hostname,