Commit ed1df22
deepshekhardas
fix(cli): ensure .env.local overrides .env values in dev command
The ENVVAR_FILES array listed .env before .env.local, but dotenv uses
first-match-wins when given an array of paths. This meant .env always
took precedence over .env.local, contrary to the standard convention
used by Next.js, Vite, and other frameworks.
Reversed the array order so more specific files (.env.development.local,
.env.local) are listed first and take proper precedence.
Fixes #29991 parent e1f8134 commit ed1df22
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
0 commit comments