Why I should not use dotenv in production mode ?
I saw the following code on some websites. But I did not understand why they are doing this condition check.
if (process.env.NODE_ENV !== 'production') {
require('dotenv').config();
}
console.log('Bla is :', process.env.Bla);(*)
let assume that the output of the line(*) in not production mode is-> Bla is : Bla
what is the output of line (*) if the NODE_ENV is production? (According to my knowledge I think it will be undefined
)