I have followed the instructions in here:
- Dotenv is installed
- There’s a route extension called
dotenv.js
that has the linerequire('dotenv').config()
- Created a
.env
file in the root folder of the project with two key value pairs
I can’t seem to get the value’s out. I tried in two ways:
-
Setting a value and opening the server action in the browser
There’s nothing there… -
On a page using EJS →it shows empty