ChainSafe / ChainSafe/lodestar
Use nodejs native support for env variables
Open
meta-feature-request
- Dominant language
- TypeScript
- Stars
- 1.4k
- Forks
- 483
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 150
Description
### Problem description
We are using `dotenv` package through out the repo enable support for the env files.
### Solution description
Starting version 20, NodeJS have builtin support for env files with flag [--env-file](https://nodejs.org/api/cli.html#--env-fileconfig). So we should use this instead of the `dotenv` package.
### Additional context
This is yet an experimental feature but seems table now. We may wait for next minor releae for NodeJS untill 22.x and use this feature.
Contributor guide
Assessment
This issue has not been assessed yet.