[GH-ISSUE #228] .env file is not loaded #56

Closed
opened 2026-05-06 12:36:52 +02:00 by BreizhHardware · 0 comments

Originally created by @niicojs on GitHub (Mar 2, 2026).
Original GitHub issue: https://github.com/cloudflare/vinext/issues/228

.env is not loaded, or maybe not loaded soon enough?
For example, using Better Auth I get a
WARN [Better Auth]: [better-auth] Base URL could not be determined. Please set a valid base URL using the baseURL config option or the BETTER_AUTH_URL environment variable. Without this, callbacks and redirects may not work correctly.

Same code works with next.

Originally created by @niicojs on GitHub (Mar 2, 2026). Original GitHub issue: https://github.com/cloudflare/vinext/issues/228 .env is not loaded, or maybe not loaded soon enough? For example, using Better Auth I get a `WARN [Better Auth]: [better-auth] Base URL could not be determined. Please set a valid base URL using the baseURL config option or the BETTER_AUTH_URL environment variable. Without this, callbacks and redirects may not work correctly.` Same code works with next.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vinext#56
No description provided.