docs: fix some index.html.md links resulting 404 (#11379)

This commit is contained in:
Shahed Nasser
2025-02-10 12:54:17 +02:00
committed by GitHub
parent 3f6425bada
commit 1e7c072efa
4 changed files with 10761 additions and 10754 deletions
@@ -9,7 +9,9 @@ export const changeLinksToHtmlMdPlugin = (): Transformer => {
if (
node.type === "link" &&
node.url?.startsWith("https://docs.medusajs.com") &&
!node.url.endsWith("index.html.md")
!node.url.endsWith("index.html.md") &&
!node.url.includes("/api/store") &&
!node.url.includes("/api/admin")
) {
node.url += `/index.html.md`
}