Files
medusa-store/www/apps/book/middleware.ts
Shahed Nasser 5122ced9f6 docs: prepare cloud docs (#12784)
* initial

* fixes

* docs: prepare cloud docs
2025-06-20 12:59:38 +03:00

14 lines
423 B
TypeScript

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