Skip to content

Commit 9666309

Browse files
feat(vercel): rewrite to .md when Accept: text/markdown
1 parent ee5d04e commit 9666309

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

vercel.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,14 @@
104104
"source": "/self-hosting",
105105
"destination": "/self-hosting/overview"
106106
}
107+
],
108+
"rewrites": [
109+
{
110+
"source": "/:path*",
111+
"has": [
112+
{ "type": "header", "key": "accept", "value": ".*text/markdown.*" }
113+
],
114+
"destination": "/:path*.md"
115+
}
107116
]
108117
}

0 commit comments

Comments
 (0)