From 8ae2881d65cdcbb157b9df9fb4cc75a75a7c2435 Mon Sep 17 00:00:00 2001 From: Joseph Chamochumbi Date: Wed, 11 Feb 2026 00:09:10 +0100 Subject: [PATCH] feat: vary accept header for markdown --- next.config.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/next.config.js b/next.config.js index f8ec196e131..94658adb97d 100644 --- a/next.config.js +++ b/next.config.js @@ -19,6 +19,14 @@ const nextConfig = { scrollRestoration: true, reactCompiler: true, }, + async headers() { + return [ + { + source: '/:path((?!llms.txt).*)', + headers: [{key: 'Vary', value: 'Accept'}], + }, + ]; + }, async rewrites() { return { beforeFiles: [