mirror of
https://github.com/HeyPuter/puter.git
synced 2025-12-30 01:29:58 -06:00
fix: use dynamic import for dotenv
This commit is contained in:
@@ -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