Uh oh!
There was an error while loading. Please reload this page.
Add llms.txt to the docs portal - #30
Conversation
Serves /llms.txt on the static export, generated from the Fumadocs source via fumadocs-core's llms helper: full docs tree with per-page one-line descriptions, absolute URLs, and a single-H1 header that points agents at the developers portal and changelog. Closes#28 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Deploying with |
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs | nextcommerce-docs | 2e7620b | Commit Preview URL Branch Preview URL | Aug 18 2026, 06:09 AM |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Code Review SummaryStatus: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)SUGGESTION
Files Reviewed (2 files)
Fix these issues in Kilo Cloud Previous Review Summaries (2 snapshots, latest commit b7e2427)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit b7e2427)Status: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)SUGGESTION
Files Reviewed (2 files)
Fix these issues in Kilo Cloud Previous review (commit e4644f3)Status: 4 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
SUGGESTION
Files Reviewed (1 file)
Reviewed by minimax-m3 · Input: 20.9K · Output: 568 · Cached: 44.6K |
… URL rewrite - Canonical origin moves to siteConfig.url (single place, matches wrangler.jsonc) and the hand-authored changelog link uses it directly instead of relying on the post-processing. - The generator's root heading is demoted by position (first H1 line) rather than by the literal text '# Docs', so a Fumadocs title change can't silently ship two H1s. - The absolute-URL rewrite is scoped to the generated index only; the shared loader keeps relative URLs for the app's own routing, which is why the transform lives here rather than in a loader URL formatter. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Uh oh!
There was an error while loading. Please reload this page.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Uh oh!
There was an error while loading. Please reload this page.
Closes#28 — docs.nextcommerce.com/llms.txt currently 404s while developers and www both serve one, and it's the surface evaluating agents most need an index for (~23k AI-crawler requests/week on the zone).
What
A static
app/llms.txt/route.tsthat generates the index at build time from the Fumadocs source, using fumadocs-core's built-inllmshelper — the same generated-from-content-manifest approach the developers portal uses, so it never drifts from the docs tree.Format follows the llms.txt convention (llmstxt.org):
Verification
Built the static export locally:
out/llms.txtrenders 151 lines covering the full tree (Start Here → Build A Store → Manage Orders → Features → Apps → Analytics), every page with its description, no relative links, single H1.npm run build(including the validate-links prebuild) passes.🤖 Generated with Claude Code