docs: fix rewrites for markdown and plain content (#13916)

This commit is contained in:
Shahed Nasser authored and GitHub committed 2025-10-31 08:54:51 +02:00
1 parent 4dac80a320
commit 0da22a8a13
5 files changed
+10 -65

No files matched your search

+2 -13
View File
@@ -298,23 +298,12 @@ const nextConfig = {
has: [
{
type: "header",
key: "accept",
value: "text/markdown",
key: "Accept",
value: ".*(text/markdown|text/plain).*",
},
],
destination: "/md-content/:path*",
},
{
source: "/:path*",
destination: "/md-content/:path*",
has: [
{
type: "header",
key: "accept",
value: "text/plain",
},
],
},
],
}
},