[PR #7831] [MERGED] fix(cli): add .env.local to dotenv #7578

Closed
opened 2026-03-13 13:42:06 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7831
Author: @himself65
Created: 2/6/2026
Status: Merged
Merged: 2/7/2026
Merged by: @himself65

Base: canaryHead: himself65/2026/02/06/env


📝 Commits (2)

  • 40a298e fix(cli): add .env.local to dotenv
  • 42ecca0 fix(cli): add .env.local to dotenv

📊 Changes

1 file changed (+6 additions, -1 deletions)

View changed files

📝 packages/cli/src/utils/get-config.ts (+6 -1)

📄 Description

Summary by cubic

CLI now loads .env.local alongside .env when resolving project config, for both explicit and discovered config files. This ensures local overrides are applied during CLI runs.

Written for commit 42ecca0b8a. Summary will update on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/7831 **Author:** [@himself65](https://github.com/himself65) **Created:** 2/6/2026 **Status:** ✅ Merged **Merged:** 2/7/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2026/02/06/env` --- ### 📝 Commits (2) - [`40a298e`](https://github.com/better-auth/better-auth/commit/40a298e28e1b3fde44a4905ae41ba403990a0ae7) fix(cli): add `.env.local` to dotenv - [`42ecca0`](https://github.com/better-auth/better-auth/commit/42ecca0b8ac83fbb4a5e8a5aac129ae6ca50421c) fix(cli): add `.env.local` to dotenv ### 📊 Changes **1 file changed** (+6 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/cli/src/utils/get-config.ts` (+6 -1) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic CLI now loads .env.local alongside .env when resolving project config, for both explicit and discovered config files. This ensures local overrides are applied during CLI runs. <sup>Written for commit 42ecca0b8ac83fbb4a5e8a5aac129ae6ca50421c. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 13:42:06 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#7578