Skip to content

Commit 5358eb7

Browse files
rezrahCopilot
andauthored
add llms.txt to build output (#1289)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent ea8a60f commit 5358eb7

3 files changed

Lines changed: 14 additions & 3 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import {generateLLMsTxt} from '@primer/doctocat-nextjs/llms'
2+
3+
export const dynamic = 'force-static'
4+
5+
export async function GET() {
6+
const content = await generateLLMsTxt()
7+
8+
return new Response(content, {
9+
headers: {'Content-Type': 'text/plain; charset=utf-8'},
10+
})
11+
}

apps/next-docs/content/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Homepage
3-
description: That
4-
keywords: test, test2
3+
description: Documentation for Primer Brand - GitHub's design system for brand-led marketing experiences
4+
keywords: ['home']
55
layout: custom
66
---
77

apps/next-docs/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
/// <reference path="./.next/types/routes.d.ts" />
3+
import "./.next/types/routes.d.ts";
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

0 commit comments

Comments
 (0)