[GH-ISSUE #8327] docs: document direct adapter imports to reduce bundle size #11055

Closed
opened 2026-04-13 07:26:06 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @chris23lngr on GitHub (Mar 3, 2026).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/8327

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

https://better-auth.com/blog/1-5#adapter-extraction
https://better-auth.com/docs/adapters/drizzle#example-usage
...all other adapters

Current vs. Expected behavior

Current: The docs still show importing adapters from the main better-auth package, even though adapters were split into dedicated packages.

Expected: docs should recommend, or at least show, that importing adapters directly from their dedicated packages is possible to reduce bundle size.

What version of Better Auth are you using?

1.5.1

System info

docs only

Which area(s) are affected? (Select all that apply)

Documentation

Auth config (if applicable)

--

Additional context

No response

Originally created by @chris23lngr on GitHub (Mar 3, 2026). Original GitHub issue: https://github.com/better-auth/better-auth/issues/8327 ### Is this suited for github? - [x] Yes, this is suited for github ### To Reproduce [https://better-auth.com/blog/1-5#adapter-extraction](https://better-auth.com/blog/1-5#adapter-extraction) [https://better-auth.com/docs/adapters/drizzle#example-usage](https://better-auth.com/docs/adapters/drizzle#example-usage) ...all other adapters ### Current vs. Expected behavior **Current**: The docs still show importing adapters from the main better-auth package, even though adapters were split into dedicated packages. **Expected**: docs should recommend, or at least show, that importing adapters directly from their dedicated packages is possible to reduce bundle size. ### What version of Better Auth are you using? 1.5.1 ### System info ```bash docs only ``` ### Which area(s) are affected? (Select all that apply) Documentation ### Auth config (if applicable) ```typescript -- ``` ### Additional context _No response_
GiteaMirror added the docsdatabase labels 2026-04-13 07:26:06 -05:00
Author
Owner

@ping-maxwell commented on GitHub (Apr 9, 2026):

they are separated, but better-auth re-exports them.

<!-- gh-comment-id:4214659720 --> @ping-maxwell commented on GitHub (Apr 9, 2026): they are separated, but better-auth re-exports them.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#11055