Reading exported variables in .env files nodejs

Viewed 339

Im trying to get Environment Variables from a .env file. They are saved as :

export KEY=VALUE 

Reading it with dotenv returns undefined because of the 'export'

I can't modify the .env

is there a way to fix this issue without duplicating the .env file and saving it without the 'export'

0 Answers
Related