Skip to content

Commit 480bddc

Browse files
committed
copy docusaurus teams' method
1 parent fbfec04 commit 480bddc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ const config = {
154154
searchPagePath: false,
155155
contextualSearch: false,
156156
replaceSearchResultPathname: {
157-
from: '^/docs/',
157+
from: /^\/docs\//g.source,
158158
to: '/',
159159
},
160160
},

0 commit comments

Comments
 (0)