why isnt dotenv reading env file code example Example 1: dotenv require('dotenv').config() Example 2: how to use dotenv in javascript dotenv file use