Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

Sure, but at least on Node 22 I think I have to pass `--env-file=.env` option to make it pick up .env.


Certainly true but there’s a line between “better DX” and… well, kinda laziness


Yeah I don't want it to silently read magic config files


There is also 1 line to load .env in node without passing an argument




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: