You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is is possible to use this lib in a standalone fashion ? eg: one not tied to nest.js at all.
My use case is that I am using mikro-orm (which provides a really nice integration with nest.js btw). It has a cli tool which can be configured via a .js file exporting an object containing the config object. Right now the config is mostly hard-coded, but I would like to use nestjs/config to load envs from a .env file and populate the config object to be exported from this script.
I know it is really simple to do this using dotenv, but I would really like to be able to have a single way of loading envs in my application, so is it possible to use this lib in a standalone manner as described above ?
The text was updated successfully, but these errors were encountered:
Issue type:
nestjs-config version
1.0.1
@nestjs/common+core or other package versions
Is is possible to use this lib in a standalone fashion ? eg: one not tied to nest.js at all.
My use case is that I am using mikro-orm (which provides a really nice integration with nest.js btw). It has a cli tool which can be configured via a .js file exporting an object containing the config object. Right now the config is mostly hard-coded, but I would like to use nestjs/config to load envs from a .env file and populate the config object to be exported from this script.
I know it is really simple to do this using dotenv, but I would really like to be able to have a single way of loading envs in my application, so is it possible to use this lib in a standalone manner as described above ?
The text was updated successfully, but these errors were encountered: