const fs = require("fs") const envPath = `.env.${process.env.NODE_ENV}` if (fs.existsSync(envPath)) { require("dotenv").config({ path: envPath, }) }