File tree Expand file tree Collapse file tree 2 files changed +13
-14
lines changed Expand file tree Collapse file tree 2 files changed +13
-14
lines changed Original file line number Diff line number Diff line change @@ -84,20 +84,6 @@ const config = {
84
84
config . plugins . push ( new ProvidePlugin ( { React : "react" } ) ) ;
85
85
return config ;
86
86
} ,
87
- async rewrites ( ) {
88
- return {
89
- beforeFiles : [
90
- {
91
- source : "/docs/manual/latest/:slug" ,
92
- destination : `/docs/manual/${ process . env . VERSION_LATEST } /:slug` ,
93
- } ,
94
- {
95
- source : "/docs/manual/next/:slug" ,
96
- destination : `/docs/manual/${ process . env . VERSION_NEXT } /:slug` ,
97
- } ,
98
- ] ,
99
- } ;
100
- } ,
101
87
async redirects ( ) {
102
88
return [
103
89
{
@@ -140,6 +126,16 @@ const config = {
140
126
destination : "/docs/manual/latest/typescript-integration" ,
141
127
permanent : true ,
142
128
} ,
129
+ {
130
+ source : "/docs/manual/latest/:slug*" ,
131
+ destination : `/docs/manual/${ process . env . VERSION_LATEST } /:slug*` ,
132
+ permanent : false ,
133
+ } ,
134
+ {
135
+ source : "/docs/manual/next/:slug*" ,
136
+ destination : `/docs/manual/${ process . env . VERSION_NEXT } /:slug*` ,
137
+ permanent : false ,
138
+ } ,
143
139
] ;
144
140
} ,
145
141
} ;
Original file line number Diff line number Diff line change 8
8
/docs/gentype/latest/getting-started /docs/manual/latest/typescript-integration 308
9
9
/docs/gentype/latest/usage /docs/manual/latest/typescript-integration 308
10
10
/docs/gentype/latest/supported-types /docs/manual/latest/typescript-integration 308
11
+
12
+ /docs/manual/latest/:slug * /docs/manual/v11.0.0/:slug * 307
13
+ /docs/manual/next/:slug * /docs/manual/v12.0.0/:slug * 307
You can’t perform that action at this time.
0 commit comments