const path = require('path');
console.log('CWD:', process.cwd());
console.log('__dirname:', __dirname);
console.log('.env path:', path.resolve(process.cwd(), '.env'));
const fs = require('fs');
console.log('.env exists in CWD?', fs.existsSync(path.resolve(process.cwd(), '.env')));
console.log('.env exists in root?', fs.existsSync(path.resolve(process.cwd(), '../../.env')));

require('dotenv').config({ path: path.resolve(process.cwd(), '../../.env') });
console.log('DATABASE_URL from ../../.env:', process.env.DATABASE_URL);
