import dotenv from 'dotenv' import fs from 'fs' if (fs.existsSync('.env.local')) { dotenv.config({ path: '.env.local' }) } else { dotenv.config() }