We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29702d2 commit f973afeCopy full SHA for f973afe
apps/docs/app/llms.txt/route.ts
@@ -1,6 +1,6 @@
1
// Thanks to better-auth for the code
2
3
-import * as fs from 'node:fs/promises';
+import fs from 'node:fs/promises';
4
import fg from 'fast-glob';
5
import { remarkInstall } from 'fumadocs-docgen';
6
import matter from 'gray-matter';
@@ -28,7 +28,9 @@ ${processed}`;
28
29
const scanned = await Promise.all(scan);
30
31
- return new Response(scanned.join('\n\n'));
+ return new Response(scanned.join('\n\n'), {
32
+ headers: { 'Content-Type': 'text/plain; charset=utf-8' },
33
+ });
34
}
35
36
async function processContent(content: string): Promise<string> {
0 commit comments