This is a long shot -- and to be clear, I don't think WebStorm is at fault here -- but I've been having problems where changes in my .env variables are not being reflected in run-time, that is, if I change a value in my .env file, the old value persists at run-time (after re-starting the app). Full details are here -- https://stackoverflow.com/questions/61757752/nodejs-env-variables-using-dotenv-are-not-submitting-to-change-cached?noredirect=1#comment109257633_61757752
Someone suggested that perhaps there might be some issue with WebStorm not writing the files correctly or consistently -- that is, that in some way it was caching them, that is, that 'smart save' or something like that might not be writing the file all the time. I thought I'd ask here if in any way WebStorm might be involved in the issue.
I'm running WS 2020.1, on MacOS 10.14, with Node 12.14.0