Skip to content

Commit 6e7efcd

Browse files
authored
docs: fix markdown content returning 404 (#16052)
1 parent e6ea48d commit 6e7efcd

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

www/apps/book/next.config.mjs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,16 +128,19 @@ const nextConfig = {
128128
destination: "/md-content",
129129
},
130130
{
131-
source: "/:path*/index.html.md",
132-
destination: "/md-content/:path*",
131+
source:
132+
"/:first((?!resources|api|ui|user-guide|cloud|md-content)[^/]+)/:rest*/index.html.md",
133+
destination: "/md-content/:first/:rest*",
133134
},
134135
{
135-
source: "/:path*/index.md",
136-
destination: "/md-content/:path*",
136+
source:
137+
"/:first((?!resources|api|ui|user-guide|cloud|md-content)[^/]+)/:rest*/index.md",
138+
destination: "/md-content/:first/:rest*",
137139
},
138140
{
139-
source: "/:path*.md",
140-
destination: "/md-content/:path*",
141+
source:
142+
"/:first((?!resources|api|ui|user-guide|cloud|md-content)[^/]+)/:rest*.md",
143+
destination: "/md-content/:first/:rest*",
141144
},
142145
{
143146
source:

0 commit comments

Comments
 (0)