dotenv icon indicating copy to clipboard operation
dotenv copied to clipboard

Disable Ads

Open tymmesyde opened this issue 6 months ago • 8 comments

Hi, is there a way to disable the Ads? It's a bit confusing to read those logs, it sounds like encrypted envs were injected by another source or something:

◇ injected env (2) from .env // tip: ◈ encrypted .env [www.dotenvx.com]

tymmesyde avatar May 28 '26 15:05 tymmesyde

Yes just pass .config({ quiet: true }) or set DOTENV_CONFIG_QUIET=true

motdotla avatar May 28 '26 16:05 motdotla

Thanks

tymmesyde avatar May 28 '26 19:05 tymmesyde

@motdotla It's disappointing that this is the official recommendation because some of the tips are legitimately helpful and passing { quiet: true } silences the legitimate tips as well as the ads, not to mention the normal logging output of the package. It also doesn't work if you enable verbose logging, i.e. { debug: true }.

Abion47 avatar Jun 18 '26 23:06 Abion47

Is there a way to just remove the ads but keep the tips?

FerLuisxd avatar Jun 19 '26 09:06 FerLuisxd

@Abion47 @FerLuisxd doesn't solve your problems exactly, but looking at the codebase, this looks like all the tips that can be generated: https://github.com/motdotla/dotenv/blob/af05aa05b4486930dc845402eecb9b7c42a8059f/lib/main.js#L7-L17

csimpf avatar Jul 01 '26 01:07 csimpf

@csimpf I'm not sure I see how exactly that solves... well... anything.

Abion47 avatar Jul 02 '26 03:07 Abion47

@csimpf I'm not sure I see how exactly that solves... well... anything.

Like I said, I know it doesn't, I only posted it because you mentioned you'd want to see legitimate tips, and they are all there (and anyone else who's reading this post can see them too).

Just thought it'd be helpful in this context.

csimpf avatar Jul 02 '26 05:07 csimpf

[email protected] is released and has removed these tips. with coding agents now able to quickly tell a developer what kind of options are available, the tips are no longer helpful. they are removed and not coming back.

motdotla avatar Sep 18 '26 21:09 motdotla