Skip to content

Commit

Permalink
fix: Reverse env files priority (#1016)
Browse files Browse the repository at this point in the history
Co-authored-by: Mathieu Ezannic <[email protected]>
  • Loading branch information
mezannic and rmn-mathieu-ezannic authored Oct 1, 2024
1 parent a64ff22 commit 177223c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/wxt/src/core/utils/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ import { config } from 'dotenv';
*/
export function loadEnv(mode: string) {
return config({
path: [`.env`, `.env.local`, `.env.${mode}`, `.env.${mode}.local`],
path: [`.env.${mode}.local`, `.env.${mode}`, `.env.local`, `.env`],
});
}

0 comments on commit 177223c

Please sign in to comment.