Files
medusa-store/www/apps/user-guide/middleware.ts
Shahed Nasser 98236c8262 docs: add clean markdown version of all documentation pages (#11308)
* added route to book

* added to resources

* added route to ui

* added to user guide
2025-02-05 11:23:13 +02:00

16 lines
384 B
TypeScript

import { NextResponse } from "next/server"
import type { NextRequest } from "next/server"
export function middleware(request: NextRequest) {
return NextResponse.rewrite(
new URL(
`${request.nextUrl.basePath}/md-content${request.nextUrl.pathname.replace("/index.html.md", "")}`,
request.url
)
)
}
export const config = {
matcher: "/:path*/index.html.md",
}