Sunday, 6 October 2019

Can't read .env files, returning all variables in Windows eg. PROCESSOR_ARCHITECTURE

I'm pretty sure I followed everything right, I just don't know how to word this question in Googleinstall dotenvcreate .env in root folder following KEY=val patternrequire('dotenv').config() also tried setting pathI then console log process.env and it shows everything eg. ProgramFiles not what's in my .env fileedit: I should clarify, this happens when I'm doing $node myfile.js which I'm not sure if that's different from a running node server, seeing these threads about setting the NODE_ENV="production" when "starting" not sure if related

Submitted October 06, 2019 at 06:08PM by crespo_modesto

No comments:

Post a Comment