Add llms.txt route handlers to Next.js website#905
Open
SakshiKekre wants to merge 1 commit intomainfrom
Open
Conversation
Port llms.txt generation from Vite build script (app/scripts/generate-llms-txt.ts) to Next.js route handlers. Restores /llms.txt, /llms-full.txt, /llms-recent.txt, /llms-research-us.txt, /llms-research-uk.txt which have been 404ing since the website domain cutover to Next.js. Core transformation logic (chart summaries, iframe placeholders, notebook extraction) copied from the Vite script with minimal changes to use existing website modules (getPostsSorted, getArticleContent, authors.json import) instead of standalone fs/path scaffolding.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
This was referenced Apr 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
app/scripts/generate-llms-txt.ts) to Next.js route handlers/llms.txt,/llms-full.txt,/llms-recent.txt,/llms-research-us.txt,/llms-research-uk.txtwhich have been 404ing since the website domain cutover to Next.jsgetPostsSorted,getArticleContent,authors.json)/us/api-explorerlink in the index (was 404, now/us/api)Verified
Content-Type: text/plainTest plan
/llms.txtreturns the index on Vercel preview/llms-full.txtreturns all 190 articles/llms-research-us.txtand/llms-research-uk.txtreturn region-filtered articles/llms-recent.txtreturns 50 most recent articles