feat(env): conditionally load .env file for Node.js 20.6+; remove dotenv dependency

This commit is contained in:
2025-10-04 18:17:38 -05:00
parent e005702480
commit 2d8a48d607
3 changed files with 4 additions and 3 deletions

View File

@@ -1,4 +1,7 @@
import "dotenv/config";
// Cargar .env localmente solo si Node soporta process.loadEnvFile (Node.js 20.6+)
if (typeof (process as any).loadEnvFile === 'function') {
(process as any).loadEnvFile();
}
import Amayo from "./core/client";
import { loadCommands } from "./core/loaders/loader";