3 ms·
Would be nice to be able to configure which .env file to read as an environment variable. Why? Imagine a package.json with this line: `start: dotenvx run -f .e
by daralthus 2y ago
Would be nice to be able to configure which .env file to read as an environment variable. Why? Imagine a package.json with this line:
`start: dotenvx run -f .env.local -f .env -- node index.js`
Instead of the -f flag, which now cannot be overriden, one could invoke it with
`DOTENV=.env.staging npm run start`
- fiddlerwoaroof 2y agoOr just have the environment variable used after the flags are processed
- vinnymac 2y agoYou can, you just need to define the private key. For example DOTENV_PRIVATE_KEY_PRODUCTION Would provide it with the information it needs to read .env.production