mirror of
https://github.com/better-auth/better-auth.git
synced 2026-08-23 17:58:47 -05:00
fix(cli): add .env.local to dotenv (#7831)
(cherry picked from commit 3b2b9834c5)
(cherry picked from commit 42a3bbaa5cb1bb7c50480b379357d0a10156b931)
This commit is contained in:
@@ -198,7 +198,9 @@ export async function getConfig({
|
||||
}
|
||||
>({
|
||||
configFile: resolvedPath,
|
||||
dotenv: true,
|
||||
dotenv: {
|
||||
fileName: [".env", ".env.local"],
|
||||
},
|
||||
jitiOptions: jitiOptions(cwd),
|
||||
cwd,
|
||||
});
|
||||
@@ -228,6 +230,9 @@ export async function getConfig({
|
||||
};
|
||||
}>({
|
||||
configFile: possiblePath,
|
||||
dotenv: {
|
||||
fileName: [".env", ".env.local"],
|
||||
},
|
||||
jitiOptions: jitiOptions(cwd),
|
||||
cwd,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user