Show HN: From dotenv to dotenvx – better config management
11–20 of 223 posts
Re: Show HN: From dotenv to dotenvx – better config management
#12"Config Management" means something else to systems folks. Suggest adding "for node projects" or something akin to the title to clarify.
Re: Show HN: From dotenv to dotenvx – better config management
#13Re: Show HN: From dotenv to dotenvx – better config management
#14I don't get it. Dotenv is only good for local dev. Otherwise you should put your secrets in environment variables (the "env" in ".env"). That people put .env files in prod is a mistake itself, and the proposed fixes here seem to not really do much about that.
Just set those env vars in your IDE. Let your IDE or docker-compose or whatever read an .env file if you must. But don't do it directly from your application code, indeed you're one lazy dev away from putting an .env file on prod servers. Using dotenv-like constructions is, in my eyes, an antipattern.
Re: Show HN: From dotenv to dotenvx – better config management
#15The URL in `dotenvx` points to https://gitub.com/dotenvx/dotenvx (gitub without the h)
Re: Show HN: From dotenv to dotenvx – better config management
#16Secrets in env vars in production is not too secure either, ideally you’ll move to your app pulling secrets in-process from your infrastructure at boot-up or upon use. This also gives a nice advantage of not needing to rebuild the app or container or whatever to rotate a secret.
Re: Show HN: From dotenv to dotenvx – better config management
#17Seems odd to announce new features without calling out to the fact that libraries with the same name in other languages have had those same features for years. (for example, the dotenv gem in Ruby)
Node.js already has built in support for .env https://nodejs.org/en/blog/release/v20.6.0#built-in-env-file...
Re: Show HN: From dotenv to dotenvx – better config management
#18I don't get it. Dotenv is only good for local dev. Otherwise you should put your secrets in environment variables (the "env" in ".env"). That people put .env files in prod is a mistake itself, and the proposed fixes here seem to not really do much about that.
It wouldn't surprise me if many VPS use .env files.
Re: Show HN: From dotenv to dotenvx – better config management
#19I don't get it. Dotenv is only good for local dev. Otherwise you should put your secrets in environment variables (the "env" in ".env"). That people put .env files in prod is a mistake itself, and the proposed fixes here seem to not really do much about that.
Re: Show HN: From dotenv to dotenvx – better config management
#20Seems odd to announce new features without calling out to the fact that libraries with the same name in other languages have had those same features for years. (for example, the dotenv gem in Ruby)