@@ -52,7 +52,7 @@ const config = {
52
52
53
53
function mainMdxLoader ( plugins ) {
54
54
return [
55
- createLoader ( function ( source ) {
55
+ createLoader ( function ( source ) {
56
56
const result = `${ source } \n\nMDXContent.frontmatter = frontmatter` ;
57
57
return result ;
58
58
} ) ,
@@ -90,65 +90,55 @@ const config = {
90
90
async redirects ( ) {
91
91
const redirects = [
92
92
{
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" ,
100
95
permanent : true ,
101
96
} ,
102
97
{
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* " ,
105
100
permanent : true ,
106
101
} ,
107
102
{
108
- source : "/docs/manual/latest/unboxed " ,
109
- destination : "/docs/manual/v10.0.0/unboxed" ,
103
+ source : "/" ,
104
+ destination : `https://rescript-lang.org` ,
110
105
permanent : true ,
111
106
} ,
112
107
{
113
- source : "/docs/gentype/latest/introduction " ,
114
- destination : "/docs/manual/latest/typescript-integration " ,
108
+ source : "/try " ,
109
+ destination : "https://rescript-lang.org/try " ,
115
110
permanent : true ,
116
111
} ,
117
112
{
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" ,
125
115
permanent : true ,
126
116
} ,
127
117
{
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* " ,
130
120
permanent : true ,
131
121
} ,
132
122
] ;
133
123
const splatRedirects = [
134
124
{
135
125
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*` ,
137
127
permanent : false ,
138
128
} ,
139
129
{
140
130
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*` ,
142
132
permanent : false ,
143
133
} ,
144
134
{
145
135
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*` ,
147
137
permanent : false ,
148
138
} ,
149
139
{
150
140
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*` ,
152
142
permanent : false ,
153
143
} ,
154
144
] ;
0 commit comments