dotenv multiple files for the same environment

Viewed 655

I am trying to use multiple config files for the same environment. So far, I was doing this for one configuration file:

node -r dotenv/config index.js dotenv_config_path=/etc/secrets/env.txt

But, now I have a requirement where I have to read from multiple configuration files for the same environment.

To achieve this, I tried this command. It loads the configurations from the first file only.

node -r dotenv/config index.js dotenv_config_path=/etc/secrets/env1.txt /etc/secrets/env2.txt

Is it possible to implement this? TIA.

0 Answers
Related