Looks like this is an issue of scope, so you should be able to resolve it by importing and configuring dotenv within cloudinar.js
cloudinar.js