docs: fix rewrites for markdown and plain content (#13916)
This commit is contained in:
@@ -164,23 +164,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",
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user