Allow .env
files to be ignored by netlify dev
command
#3393
Labels
area: command: dev
area: dx
type: feature
code contributing to the implementation of a feature and/or user facing functionality
Is your feature request related to a problem? Please describe.
There is no way to opt-out of the reading of environment variables from
.env
files in the root of my project directory when runningnetlify dev
.Describe the solution you'd like
I'd like the ability to use
netlify dev
without.env
files in my project directory being read / considered.Describe alternatives you've considered
Alternatives at the moment are to avoid using
.env
files as I have them setup across my project, perhaps renaming them and reconfiguringdotenv-flow
to consider the new file names. However, I think this is more complex thannetlify dev
offering a--ignore-local-env
flag or similar.Additional context
I am using the
dotenv-flow
methodology of managing.env
files, so my.env
file doesn't contain local overrides; it instead contains sensible defaults and local overrides exist in.env.local
.Can you submit a pull request?
Yes
The text was updated successfully, but these errors were encountered: