Closed shamoons closed 5 years ago
Yes, with custom loading you can specify a different path:
import {load as envkeyLoad} from 'envkey/loader'
envkeyLoad({ dotEnvFile: ".staging.env" })
Then do I need to have a .env.test
file? Or will it also work from actual environment variables @danenania ?
envkey will defer to anything in the .env
file (which could be .env.test
or whatever path you set) or any environment variables that are already set. So either would work to override.
I know anything in
.env
will override. But what about.env.test
?