tangled
alpha
login
or
join now
danabra.mov
/
overreacted
51
fork
atom
my blog https://overreacted.io
51
fork
atom
overview
issues
pulls
2
pipelines
add llms.txt
danabra.mov
1 month ago
5f4f1dcc
87a80218
1/1
deploy.yaml
success
1min
+23
1 changed file
expand all
collapse all
unified
split
app
llms.txt
route.ts
+23
app/llms.txt/route.ts
···
1
1
+
import { getPosts } from "../posts";
2
2
+
3
3
+
export const dynamic = "force-static";
4
4
+
5
5
+
export async function GET() {
6
6
+
const posts = await getPosts();
7
7
+
const lines = [
8
8
+
"# Overreacted",
9
9
+
"",
10
10
+
"> A personal blog by Dan Abramov about React, JavaScript, AT Protocol, Lean, and programming in general.",
11
11
+
"",
12
12
+
"## Posts",
13
13
+
"",
14
14
+
];
15
15
+
16
16
+
for (const post of posts) {
17
17
+
lines.push(`- [${post.title}](https://overreacted.io/${post.slug}/index.md): ${post.spoiler}`);
18
18
+
}
19
19
+
20
20
+
return new Response(lines.join("\n"), {
21
21
+
headers: { "Content-Type": "text/plain; charset=utf-8" },
22
22
+
});
23
23
+
}