[PR #4130] [CLOSED] debug: env is missing #13452

Closed
opened 2026-04-13 08:56:49 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4130
Author: @himself65
Created: 8/21/2025
Status: Closed

Base: canaryHead: himself65/2025/08/21/debug


📝 Commits (2)

📊 Changes

1 file changed (+5 additions, -0 deletions)

View changed files

📝 packages/better-auth/src/utils/env.ts (+5 -0)

📄 Description

DON'T MERGE


Summary by cubic

Add temporary debug logs in Better Auth init to print options and key environment values, helping diagnose missing env variables during startup. Logs include BETTER_AUTH_SECRET, BETTER_AUTH_TRUSTED_ORIGINS, AUTH_SECRET, and flags for isProduction, isDevelopment, and isTest.


🔄 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/4130 **Author:** [@himself65](https://github.com/himself65) **Created:** 8/21/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `himself65/2025/08/21/debug` --- ### 📝 Commits (2) - [`406d47e`](https://github.com/better-auth/better-auth/commit/406d47e712c2f79c5960d99adf35f38128a36bc7) debug: env is missing - [`e916c94`](https://github.com/better-auth/better-auth/commit/e916c949f8578db7e1eae31610044bb4a67f571a) debug: more ### 📊 Changes **1 file changed** (+5 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/utils/env.ts` (+5 -0) </details> ### 📄 Description DON'T MERGE <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Add temporary debug logs in Better Auth init to print options and key environment values, helping diagnose missing env variables during startup. Logs include BETTER_AUTH_SECRET, BETTER_AUTH_TRUSTED_ORIGINS, AUTH_SECRET, and flags for isProduction, isDevelopment, and isTest. <!-- 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-04-13 08:56:49 -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#13452