diff --git a/src/main.ts b/src/main.ts index 2c3745c..9363eb7 100644 --- a/src/main.ts +++ b/src/main.ts @@ -19,12 +19,13 @@ async function bootstrap() { const secure = process.env.API_SECURE?.toLowerCase() == 'true'; if (secure) { - const httpsOptions = { - key: readFileSync('./secrets/key.pem'), - cert: readFileSync('./secrets/cert.pem'), - }; - options = { https: httpsOptions }; + options = { + https: { + key: readFileSync('./secrets/key.pem'), + cert: readFileSync('./secrets/cert.pem'), + } + }; } else {