mirror of
https://github.com/HeyPuter/puter.git
synced 2026-11-14 18:01:21 +00:00
fix: use dynamic import for dotenv
This commit is contained in:
1 parent
15eb44d62d
commit
f729eaa31f
1 file changed
+1
-2
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user