docs: serve markdown to agents (#13915)
This commit is contained in:
1 parent
66bbe39a8e
commit
b1b6960147
11 files changed
+173
-75
No files matched your search
@@ -129,6 +129,38 @@ const nextConfig = {
|
||||
experimental: {
|
||||
optimizePackageImports: ["@medusajs/icons", "@medusajs/ui"],
|
||||
},
|
||||
rewrites: async () => {
|
||||
return {
|
||||
beforeFiles: [
|
||||
{
|
||||
source: "/:path*/index.html.md",
|
||||
destination: "/md-content/:path*",
|
||||
},
|
||||
{
|
||||
source: "/:path*",
|
||||
has: [
|
||||
{
|
||||
type: "header",
|
||||
key: "accept",
|
||||
value: "text/markdown",
|
||||
},
|
||||
],
|
||||
destination: "/md-content/:path*",
|
||||
},
|
||||
{
|
||||
source: "/:path*",
|
||||
destination: "/md-content/:path*",
|
||||
has: [
|
||||
{
|
||||
type: "header",
|
||||
key: "accept",
|
||||
value: "text/plain",
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
const withBundleAnalyzer = bundleAnalyzer({
|
||||
|
||||
Reference in new issue
Block a user