Added dotenv support.

This commit is contained in:
Tom Butcher 2025-12-14 01:22:42 +00:00
parent 9c4e0ee974
commit 5545452b0c

View File

@ -2,6 +2,10 @@
import fs from 'fs';
import path from 'path';
import { fileURLToPath } from 'url';
import dotenv from 'dotenv';
// Load environment variables from .env file
dotenv.config();
// Configure paths relative to this file
const __filename = fileURLToPath(import.meta.url);