File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -67,11 +67,15 @@ module.exports = {
6767 } ,
6868 pages : [
6969 {
70- matchPath : "/:lang?/404" ,
70+ matchPath : "/:lang?/404/ " ,
7171 getLanguageFromPath : true ,
7272 } ,
7373 {
74- matchPath : `/:lang?/(${ Object . keys ( docs . docs ) . join ( "|" ) } )/(.*)` ,
74+ matchPath : "/:lang?/search/" ,
75+ getLanguageFromPath : true ,
76+ } ,
77+ {
78+ matchPath : `/:lang?/(${ Object . keys ( docs . docs ) . join ( "|" ) } )/(.*)/` ,
7579 getLanguageFromPath : true ,
7680 } ,
7781 {
Original file line number Diff line number Diff line change @@ -290,6 +290,15 @@ export const createDocSearch = async ({
290290} : CreatePagesArgs ) => {
291291 const template = resolve ( __dirname , "../src/templates/DocSearchTemplate.tsx" ) ;
292292
293+ createPage ( {
294+ path : "/zh/search/" ,
295+ component : template ,
296+ context : {
297+ feature : {
298+ banner : false ,
299+ } ,
300+ } ,
301+ } ) ;
293302 createPage ( {
294303 path : "/search/" ,
295304 component : template ,
You can’t perform that action at this time.
0 commit comments