Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
jpsimons
· 7mo ago · 0 comments
Sure, but at least on Node 22 I think I have to pass `--env-file=.env` option to make it pick up .env.
Comments
[–]
afavour
7mo ago
Certainly true but there’s a line between “better DX” and… well, kinda laziness
[–]
traderj0e
7mo ago
Yeah I don't want it to silently read magic config files
[–]
AbuAssar
7mo ago
There is also 1 line to load .env in node without passing an argument