@@ -52,7 +52,7 @@ const config = {
5252
5353 function mainMdxLoader ( plugins ) {
5454 return [
55- createLoader ( function ( source ) {
55+ createLoader ( function ( source ) {
5656 const result = `${ source } \n\nMDXContent.frontmatter = frontmatter` ;
5757 return result ;
5858 } ) ,
@@ -90,65 +90,55 @@ const config = {
9090 async redirects ( ) {
9191 const redirects = [
9292 {
93- source : "/community" ,
94- destination : "/community/overview" ,
95- permanent : true ,
96- } ,
97- {
98- source : "/bucklescript-rebranding" ,
99- destination : "/blog/bucklescript-is-rebranding" ,
93+ source : "/blog" ,
94+ destination : "https://rescript-lang.org/blog" ,
10095 permanent : true ,
10196 } ,
10297 {
103- source : "/docs/manual/latest/migrate-from-bucklescript-reason " ,
104- destination : "/docs/manual/v10.0.0/migrate-from-bucklescript-reason " ,
98+ source : "/blog/:slug* " ,
99+ destination : "https://rescript-lang.org/blog/:slug* " ,
105100 permanent : true ,
106101 } ,
107102 {
108- source : "/docs/manual/latest/unboxed " ,
109- destination : "/docs/manual/v10.0.0/unboxed" ,
103+ source : "/" ,
104+ destination : `https://rescript-lang.org` ,
110105 permanent : true ,
111106 } ,
112107 {
113- source : "/docs/gentype/latest/introduction " ,
114- destination : "/docs/manual/latest/typescript-integration " ,
108+ source : "/try " ,
109+ destination : "https://rescript-lang.org/try " ,
115110 permanent : true ,
116111 } ,
117112 {
118- source : "/docs/gentype/latest/getting-started" ,
119- destination : "/docs/manual/latest/typescript-integration" ,
120- permanent : true ,
121- } ,
122- {
123- source : "/docs/gentype/latest/usage" ,
124- destination : "/docs/manual/latest/typescript-integration" ,
113+ source : "/community" ,
114+ destination : "https://rescript-lang.org/community" ,
125115 permanent : true ,
126116 } ,
127117 {
128- source : "/docs/gentype/latest/supported-types " ,
129- destination : "/docs/manual/latest/typescript-integration " ,
118+ source : "/community/:slug* " ,
119+ destination : "https://rescript-lang.org/community/:slug* " ,
130120 permanent : true ,
131121 } ,
132122 ] ;
133123 const splatRedirects = [
134124 {
135125 source : "/docs/manual/latest/:slug*" ,
136- destination : `/docs/manual/${ process . env . VERSION_LATEST } /:slug*` ,
126+ destination : `https://rescript-lang.org /docs/manual/${ process . env . VERSION_LATEST } /:slug*` ,
137127 permanent : false ,
138128 } ,
139129 {
140130 source : "/docs/manual/next/:slug*" ,
141- destination : `/docs/manual/${ process . env . VERSION_NEXT } /:slug*` ,
131+ destination : `https://rescript-lang.org /docs/manual/${ process . env . VERSION_NEXT } /:slug*` ,
142132 permanent : false ,
143133 } ,
144134 {
145135 source : "/llms/manual/latest/:file*" ,
146- destination : `/llms/manual/${ process . env . VERSION_LATEST } /:file*` ,
136+ destination : `https://rescript-lang.org /llms/manual/${ process . env . VERSION_LATEST } /:file*` ,
147137 permanent : false ,
148138 } ,
149139 {
150140 source : "/llms/manual/next/:file*" ,
151- destination : `/llms/manual/${ process . env . VERSION_NEXT } /:file*` ,
141+ destination : `https://rescript-lang.org /llms/manual/${ process . env . VERSION_NEXT } /:file*` ,
152142 permanent : false ,
153143 } ,
154144 ] ;
0 commit comments