Skip to content

Commit 8ae2881

Browse files
committed
feat: vary accept header for markdown
1 parent f653b03 commit 8ae2881

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

next.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ const nextConfig = {
1919
scrollRestoration: true,
2020
reactCompiler: true,
2121
},
22+
async headers() {
23+
return [
24+
{
25+
source: '/:path((?!llms.txt).*)',
26+
headers: [{key: 'Vary', value: 'Accept'}],
27+
},
28+
];
29+
},
2230
async rewrites() {
2331
return {
2432
beforeFiles: [

0 commit comments

Comments
 (0)