Skip to content

Commit 446f97f

Browse files
committed
Fix incorrect character encoding on LLM files
1 parent 31b6d6e commit 446f97f

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

nginx.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
charset utf-8;
2+
13
server {
24
listen 80;
35
root /usr/share/nginx/html;

src/pages/[...slug].md.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,5 @@ ${doc.data.description ? `\n${doc.data.description}\n` : ''}
9494
${cleanedContent}
9595
`;
9696

97-
return new Response(markdown, {
98-
headers: {
99-
'Content-Type': 'text/plain; charset=utf-8',
100-
},
101-
});
97+
return new Response(markdown);
10298
};

src/pages/llms-full.txt.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,5 @@ ${cleanedContent}
193193

194194
const fullContent = parts.join('\n');
195195

196-
return new Response(fullContent, {
197-
headers: {
198-
'Content-Type': 'text/plain; charset=utf-8',
199-
},
200-
});
196+
return new Response(fullContent);
201197
};

0 commit comments

Comments
 (0)