DEV Community

Discussion on: Managing multiple environments in NestJS

Collapse
 
omardiaa48 profile image
Omar Diaaeldine Elwakeel

I followed your tutorial, and it helped me alot in managing the variables in the app, but I have one comment, rather than process.cwd() you should adjust it to be relative the app itself not the absolute directory, so I prefer using 'src/config/env/${process.env.NODE_ENV}.env'

Anyway Good job!!