You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notice the .env.netlify.local is being ignored in favour of the .env.netlify variables, which get injected. Some .env.netlify.local variables are injected, but they have no counterpart in the .env.netlify file.
I was on "netlify-cli": "^9.13.6" and also tried it on "netlify-cli": "^10.0.0" but both seem to have this issue.
Steps to reproduce
create a new project
initialize netlify-cli
create .env.netlify and .env.netlify.local files
put SOME_VAR=prod and SOME_VAR=local in each file respectively
edit netlify.toml to include envFiles = [".env.netlify", ".env.netlify.local"] setting under [dev]
run netlify dev
observe the .env.netlify.local variable being ignored and the .env.netlify being injected
Describe the bug
I am using a configuration feature outlined in this PR #4321 to only inject specific .env files into my functions, but not my Vite environment.
My
netlify.toml
has the followingWhen I run
netlify dev
I get the following.Notice the
.env.netlify.local
is being ignored in favour of the.env.netlify
variables, which get injected. Some.env.netlify.local
variables are injected, but they have no counterpart in the.env.netlify
file.I was on
"netlify-cli": "^9.13.6"
and also tried it on"netlify-cli": "^10.0.0"
but both seem to have this issue.Steps to reproduce
.env.netlify
and.env.netlify.local
filesSOME_VAR=prod
andSOME_VAR=local
in each file respectivelynetlify.toml
to includeenvFiles = [".env.netlify", ".env.netlify.local"]
setting under[dev]
netlify dev
.env.netlify.local
variable being ignored and the.env.netlify
being injectedConfiguration
Environment
The text was updated successfully, but these errors were encountered: