From fa42c2202ef936b6a63df0c4727b2bfa1b0008ec Mon Sep 17 00:00:00 2001 From: Jed Fox Date: Sat, 11 Feb 2023 21:26:04 -0500 Subject: [PATCH] Replace require with import (#133) --- src/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.js b/src/app.js index 42eb56ecd..a354895a1 100644 --- a/src/app.js +++ b/src/app.js @@ -58,7 +58,7 @@ export default async function run() { await syncApp.init(); if (config.https) { - const https = require('https'); + const https = await import('node:https'); const httpsOptions = { ...config.https, key: parseHTTPSConfig(config.https.key),