Skip to content

fix(auth): Lazily initialize the Better Auth Drizzle adapter. - #300

Merged
Brooooooklyn merged 1 commit into
mainfrom
better-auth-drizzle
Aug 28, 2026
Merged

Brooooooklyn merged 1 commit into
mainfrom
better-auth-drizzle

Conversation

@cpojer

@cpojer cpojer commented Aug 28, 2026

Copy link
Copy Markdown
Member

I noticed that Better Auth 1.7.2 reads Drizzle's metadata when constructing the adapter, which previously accessed Cloudflare bindings before the request env was available. This caused a deploy error for Codiff web: https://github.com/nkzw-tech/codiff/actions/runs/33129258047/job/98714672492

This PR changes Void to lazily initialize the drizzle adapter during request handling instead of worker module eval time.

Related Better Auth PR: better-auth/better-auth#10941

@cpojer
cpojer requested a review from Brooooooklyn August 28, 2026 00:44
@Brooooooklyn
Brooooooklyn merged commit 1f5d8f6 into main Aug 28, 2026
8 checks passed
@Brooooooklyn
Brooooooklyn deleted the better-auth-drizzle branch August 28, 2026 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants