import { config } from 'dotenv'; import { fileURLToPath } from 'node:url'; import { dirname, resolve } from 'node:path'; const __filename = fileURLToPath(import.meta.url); const currentDir = dirname(__filename); const envPath = resolve(currentDir, '../../../.env'); config({ path: envPath });