diff --git a/nginx.conf b/nginx.conf index e4f62ea..0138f5a 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,3 +1,5 @@ +charset utf-8; + server { listen 80; root /usr/share/nginx/html; diff --git a/src/pages/[...slug].md.ts b/src/pages/[...slug].md.ts index bd00b62..5714623 100644 --- a/src/pages/[...slug].md.ts +++ b/src/pages/[...slug].md.ts @@ -94,9 +94,5 @@ ${doc.data.description ? `\n${doc.data.description}\n` : ''} ${cleanedContent} `; - return new Response(markdown, { - headers: { - 'Content-Type': 'text/plain; charset=utf-8', - }, - }); + return new Response(markdown); }; diff --git a/src/pages/llms-full.txt.ts b/src/pages/llms-full.txt.ts index 9041fae..e09e187 100644 --- a/src/pages/llms-full.txt.ts +++ b/src/pages/llms-full.txt.ts @@ -193,9 +193,5 @@ ${cleanedContent} const fullContent = parts.join('\n'); - return new Response(fullContent, { - headers: { - 'Content-Type': 'text/plain; charset=utf-8', - }, - }); + return new Response(fullContent); };