my blog https://overreacted.io

add llms.txt

+23
+23
app/llms.txt/route.ts
··· 1 + import { getPosts } from "../posts"; 2 + 3 + export const dynamic = "force-static"; 4 + 5 + export async function GET() { 6 + const posts = await getPosts(); 7 + const lines = [ 8 + "# Overreacted", 9 + "", 10 + "> A personal blog by Dan Abramov about React, JavaScript, AT Protocol, Lean, and programming in general.", 11 + "", 12 + "## Posts", 13 + "", 14 + ]; 15 + 16 + for (const post of posts) { 17 + lines.push(`- [${post.title}](https://overreacted.io/${post.slug}/index.md): ${post.spoiler}`); 18 + } 19 + 20 + return new Response(lines.join("\n"), { 21 + headers: { "Content-Type": "text/plain; charset=utf-8" }, 22 + }); 23 + }