Earlier quoted context omitted.
I used to store secrets in the FS, and was told the best practice was env vars. Now it's not env vars. What is it then?
The problem with .env files is that you are doing both. You have a .env file that is in the same directory as your code and you just copy to to env vars at some point. This does not even meet the security principles that dotenv is supposed to implement! I think people are blindly following the advice "put secrets in env vars" without understanding that the point of it is to keep secrets outside files your app can rea…
.env file shouldn't be used in production, env vars should be injected directly