[PR #5636] [MERGED] docs: remove fs read #23031

Closed
opened 2026-04-15 21:26:06 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5636
Author: @himself65
Created: 10/28/2025
Status: Merged
Merged: 10/28/2025
Merged by: @himself65

Base: canaryHead: himself65/2025/10/27/fs


📝 Commits (1)

📊 Changes

1 file changed (+6 additions, -7 deletions)

View changed files

📝 docs/app/docs/lib/get-llm-text.ts (+6 -7)

📄 Description

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.

🔄 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/5636 **Author:** [@himself65](https://github.com/himself65) **Created:** 10/28/2025 **Status:** ✅ Merged **Merged:** 10/28/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2025/10/27/fs` --- ### 📝 Commits (1) - [`150e21f`](https://github.com/better-auth/better-auth/commit/150e21f4a52e45194c5b3950f1d3d0b3ce89587a) docs: remove fs read ### 📊 Changes **1 file changed** (+6 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `docs/app/docs/lib/get-llm-text.ts` (+6 -7) </details> ### 📄 Description 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. --> --- <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-15 21:26:06 -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#23031