You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m encountering an issue with loading environment variables using the dotenv package in Node.js 20.17. Despite following the typical setup for using dotenv, the environment variables defined in my .env file are not being loaded into process.env. import dotenv from 'dotenv'; // Load environment variables from .env file dotenv.config({ path: '.env' });
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I’m encountering an issue with loading environment variables using the dotenv package in Node.js 20.17. Despite following the typical setup for using dotenv, the environment variables defined in my .env file are not being loaded into process.env.
import dotenv from 'dotenv'; // Load environment variables from .env file dotenv.config({ path: '.env' });
Beta Was this translation helpful? Give feedback.
All reactions