Closed Cmion closed 4 months ago
My guess would be dotenv populates the process.env
dictionary in the running node process while node-config-ts
loads from the environment in the shell the node process is running in. You would need to source your .env
file before it would work with the library.
@Cmion we just added support for dotenv, are you still experiencing this issue?
The config object returned from
node-config-ts
is empty.Steps To Reproduce:
Expected behavior: Environment variables from files should be loaded and used in places where
@@VAR
was used in the JSON filesTypescript Version: 4.2.4 node-config-ts version: 9.1.1
tsconfig.json
package.json
Additional context Add any other context about the problem here.