DEV Community

Discussion on: How to manage environment variables on NestJS

Collapse
pitops profile image
Petros Kyriakou

Why use this instead of nestjs/config package?

Collapse
rubiin profile image
Rubin Author

Well, this was before nestjs/config was a thing. Also it provides some features like env safety which nestjs/config doesnt at the moment

Collapse
pitops profile image
Petros Kyriakou

Actually in nestjs documentation, it is documented that you can use joi to provide env safety