From f729eaa31fe10e6b772c82ec5611002baead1994 Mon Sep 17 00:00:00 2001 From: KernelDeimos Date: Mon, 22 Sep 2025 19:30:37 -0400 Subject: [PATCH] fix: use dynamic import for dotenv --- tools/run-selfhosted.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/run-selfhosted.js b/tools/run-selfhosted.js index 569e543a6..db38296f3 100644 --- a/tools/run-selfhosted.js +++ b/tools/run-selfhosted.js @@ -27,8 +27,7 @@ import console from 'node:console'; import process from 'node:process'; try { - const dotenv = require('dotenv'); - dotenv.config(); + await import('dotenv/config'); } catch (e) { // dotenv is optional }