Skip to content

Commit e9bbd62

Browse files
committed
fix: missing /docs prefix on URLs in llms.txt
1 parent 6f14ac5 commit e9bbd62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data/onPostBuild/llmstxt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export const onPostBuild: GatsbyNode['onPostBuild'] = async ({ graphql, reporter
8989
const { title, meta_description } = meta;
9090

9191
try {
92-
const url = prefixPath({ url: slug, siteUrl, pathPrefix: basePath });
92+
const url = prefixPath({ url: `/docs/${slug}`, siteUrl, pathPrefix: basePath });
9393
const safeTitle = escapeMarkdown(title);
9494
const link = `[${safeTitle}](${url})`;
9595
const line = `- ${[link, meta_description].join(': ')}`;

0 commit comments

Comments
 (0)