fix: use dynamic import for dotenv

This commit is contained in:
KernelDeimos committed 2025-09-22 19:30:37 -04:00
1 parent 15eb44d62d
commit f729eaa31f
1 file changed
+1 -2
+1 -2
View File
@@ -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
}