You mean the Dotenv.config() call? It shouldn’t be above requires (not before require("dotenv") at least), or you’ll end up trying to access a property of Dotenv before it’s assigned.
↧
How can i make sure dotenv is loaded
↧