Skip to content

Commit 1171349

Browse files
committed
docs: rewrite API docs to remove html extension
1 parent fe5fa31 commit 1171349

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

www/next.config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,19 @@ module.exports = {
107107
destination: "/docs/api/:path*",
108108
permanent: true,
109109
},
110+
{
111+
source: "/api/:path*.html",
112+
destination: "/api/:path*",
113+
permanent: true,
114+
},
115+
]
116+
},
117+
async rewrites() {
118+
return [
119+
{
120+
source: "/api/:slug*",
121+
destination: "/api/:slug*.html", // Matched parameters can be used in the destination
122+
},
110123
]
111124
},
112125
}

0 commit comments

Comments
 (0)