[PR #5636] docs: remove fs read #14377

Closed
opened 2026-04-13 09:26:43 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/better-auth/better-auth/pull/5636

State: closed
Merged: Yes


Fixes: https://github.com/better-auth/better-auth/issues/5588


Summary by cubic

Replaced fs-based file reading in getLLMText with content from source.getPage to avoid Node APIs and fix docs rendering in edge/serverless environments.

  • Refactors
    • Use docPage.data.content instead of readFile.
    • Update function signature to ReturnType and use docPage!.path/title/description.
**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5636 **State:** closed **Merged:** Yes --- Fixes: https://github.com/better-auth/better-auth/issues/5588 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Replaced fs-based file reading in getLLMText with content from source.getPage to avoid Node APIs and fix docs rendering in edge/serverless environments. - **Refactors** - Use docPage.data.content instead of readFile. - Update function signature to ReturnType<typeof source.getPage> and use docPage!.path/title/description. <!-- End of auto-generated description by cubic. -->
GiteaMirror added the pull-request label 2026-04-13 09:26:43 -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#14377