Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by jpsimons

11 days ago

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

3 comments

jpsimons

Reply

afavour  11 days ago

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

  • traderj0e  11 days ago

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

AbuAssar  11 days ago

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

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities