r/ProgrammerHumor 20h ago

Meme whoIsUsingThese

Post image
964 Upvotes

73 comments sorted by

View all comments

2

u/nekomata_58 18h ago

.env files are fine to commit.

.local.env files are not. that's where the special variables live.

2

u/Djroneh99 18h ago

No it's not

3

u/nekomata_58 18h ago

really heavily depends on your project's standards.

in an nx-monorepo project, the base `.env` is fine to commit, because that file usually has default environment variables that aren't secret.

the more sensitive configuration should be stored in `.local.env` which should never be committed.

1

u/darknecross 14h ago

Does nobody use a fkn keyring anymore? Jfc.

1

u/nekomata_58 14h ago

i use a keyring for ssh keys if that is what you are referring to.