Technical notes on web development, DevOps, and AI integration.
1 article
Adding llms.txt route handlers to a bilingual Next.js App Router site and generating the file from the same content modules the pages render.
TL;DR: The author initially assumed llms.txt was a sitemap for LLMs, but it's actually a small curated markdown overview agents fetch on demand, with no SEO payoff today. They added two Next.js route handlers serving it as static plain text with caching. The key takeaway: generate it from the same content modules as your pages to prevent drift.