fix(core): load .env after .env.local (#18746)

This commit is contained in:
Craigory Coppola 2023-08-21 13:42:51 -04:00 committed by GitHub
parent 5ff8722d66
commit 4a25576b65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ function main() {
* - .env.local
*/
function loadDotEnvFiles() {
for (const file of ['.env', '.local.env', '.env.local']) {
for (const file of ['.local.env', '.env.local', '.env']) {
loadDotEnvFile({
path: file,
});

View File

@ -437,9 +437,9 @@ export class ForkedProcessTaskRunner {
`.${task.target.target}.env`,
// Load base DotEnv Files at workspace root
`.env`,
`.local.env`,
`.env.local`,
`.env`,
];
for (const file of dotEnvFiles) {