Re:Node.js 20.6.0 will include built-in support for .env files
by arielcostas on Friday August 18, 2023 @07:10PM
(#37183325)
I like ASP.NET Core approach of having an `appsettings.json` where you just specify your settings, and also allowing to have `user-secrets` on a different directory, which prevents you from accidentally adding it to source control (which happens way more than it should). Of course, you can also use environment variables, but creating a JSON file that allows nesting properties is quite nice and probably easier for noobs than figuring out each .env implementation's quirks.
[ Parent
| on HN ]
There are no comments on this comment yet.