Go Pro Sign Up Login
0 days 0 hrs 0 min 0 sec

Summer Sale

50% off Level Up Pro until you unsubscribe.
Get access to ALL 128 courses on Level Up Tutorials

This is your last chance to get Level Up Pro for $145/year.

or Learn More
Moon Moon

Buy Now and unlock this series







yours forever

Become a Pro and unlock everything




per month


Before we go any further, we will take a minute to set up dot ENV support in our app. This is important if we want to share secrets and keys but keep the values hidden from the public. npm install —save dotenv


Become a pro to download code and videos



12 months ago [edited]

On windows 10.

in env.js just add an object with path: 'src/.env In fact, the dotenv will work just as here. Trying to make use of the preloading does not make the trick. It is just so that the library, at least on windows does use this additional path info.

--> dotenv.config( { path: 'src/.env' } )


Want to join the conversation?

Become a Pro member today!