Added dotenv support.
This commit is contained in:
parent
456916ef1f
commit
6bc0f6eded
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user