Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 43ef9f9

Browse files
committed
fix redirect chains
1 parent 246244d commit 43ef9f9

File tree

1 file changed

+31
-54
lines changed

1 file changed

+31
-54
lines changed

next.config.mjs

Lines changed: 31 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -87,22 +87,6 @@ const nextConfig = {
8787
basePath: false,
8888
permanent: true,
8989
})),
90-
...[
91-
'/docs/local-dashboard',
92-
'/docs/installation',
93-
'/docs/deployment',
94-
'/docs/language-support',
95-
'/docs/guides/deploy',
96-
'/docs/guides/github-actions',
97-
].map((source) => ({
98-
source: source,
99-
destination: `/docs/getting-started${source.replace(
100-
/^(\/docs\/guides\/|\/docs\/)/,
101-
'/',
102-
)}`,
103-
basePath: false,
104-
permanent: true,
105-
})),
10690
...['/docs/guides/text-prediction', '/docs/guides/create-histogram'].map(
10791
(source) => ({
10892
source: source,
@@ -128,7 +112,7 @@ const nextConfig = {
128112
},
129113
{
130114
source: '/docs/assets',
131-
destination: '/docs/concepts/introduction',
115+
destination: '/docs',
132116
basePath: false,
133117
permanent: true,
134118
},
@@ -140,7 +124,7 @@ const nextConfig = {
140124
},
141125
{
142126
source: '/docs/concepts',
143-
destination: '/docs/concepts/introduction',
127+
destination: '/docs',
144128
basePath: false,
145129
permanent: true,
146130
},
@@ -164,7 +148,7 @@ const nextConfig = {
164148
},
165149
{
166150
source: '/docs/access-control',
167-
destination: '/docs/concepts/access-control',
151+
destination: '/docs/get-started/foundations/infrastructure/security',
168152
basePath: false,
169153
permanent: true,
170154
},
@@ -176,25 +160,25 @@ const nextConfig = {
176160
},
177161
{
178162
source: '/docs/getting-started',
179-
destination: '/docs/getting-started/quickstart',
163+
destination: '/docs/get-started/quickstart',
180164
basePath: false,
181165
permanent: true,
182166
},
183167
{
184168
source: '/docs/guides/getting-started',
185-
destination: '/docs/getting-started/quickstart',
169+
destination: '/docs/get-started/quickstart',
186170
basePath: false,
187171
permanent: true,
188172
},
189173
{
190174
source: '/docs/guides/getting-started/concepts',
191-
destination: '/docs/concepts/introduction',
175+
destination: '/docs',
192176
basePath: false,
193177
permanent: true,
194178
},
195179
{
196180
source: '/docs/getting-started/concepts',
197-
destination: '/docs/concepts/introduction',
181+
destination: '/docs',
198182
basePath: false,
199183
permanent: true,
200184
},
@@ -218,7 +202,7 @@ const nextConfig = {
218202
},
219203
{
220204
source: '/docs/assets/access-control',
221-
destination: '/docs/concepts/access-control',
205+
destination: '/docs/get-started/foundations/infrastructure/security',
222206
basePath: false,
223207
permanent: true,
224208
},
@@ -236,7 +220,7 @@ const nextConfig = {
236220
},
237221
{
238222
source: '/docs/guides/getting-started/language-support',
239-
destination: '/docs/concepts/language-support',
223+
destination: '/docs/reference/languages#supported-languages',
240224
basePath: false,
241225
permanent: true,
242226
},
@@ -281,43 +265,36 @@ const nextConfig = {
281265
basePath: false,
282266
permanent: true,
283267
})),
284-
...[
285-
'/docs/guides/getting-started/quickstart',
286-
'/docs/guides/getting-started/installation',
287-
'/docs/guides/getting-started/local-dashboard',
288-
'/docs/guides/getting-started/deployment',
289-
].map((source) => ({
290-
source: source,
291-
destination: `/docs/${source.replace(
292-
/^(\/docs\/guides\/|\/docs\/)/,
293-
'',
294-
)}`,
268+
{
269+
source: '/docs/guides/getting-started/quickstart',
270+
destination: '/docs/get-started/quickstart',
295271
basePath: false,
296272
permanent: true,
297-
})),
273+
},
298274
{
299-
source: '/docs/faq/common-questions',
300-
destination: '/docs/faq',
275+
source: '/docs/guides/getting-started/installation',
276+
destination: '/docs/get-started/installation',
301277
basePath: false,
302278
permanent: true,
303279
},
304-
...[
305-
'aws-cdk',
306-
'aws-sam',
307-
'gcp-deployment-manager',
308-
'bicep',
309-
'pulumi',
310-
'terraform',
311-
'sst',
312-
'encore',
313-
'winglang',
314-
'ampt',
315-
].map((page) => ({
316-
source: `/docs/faq/comparison/${page}`,
317-
destination: `/docs/concepts/comparison/${page}`,
280+
{
281+
source: '/docs/guides/getting-started/local-dashboard',
282+
destination: '/docs/get-started/foundations/projects/local-development',
318283
basePath: false,
319284
permanent: true,
320-
})),
285+
},
286+
{
287+
source: '/docs/guides/getting-started/deployment',
288+
destination: '/docs/get-started/foundations/deployment',
289+
basePath: false,
290+
permanent: true,
291+
},
292+
{
293+
source: '/docs/faq/common-questions',
294+
destination: '/docs/faq',
295+
basePath: false,
296+
permanent: true,
297+
},
321298
{
322299
source: '/docs/reference/pulumi',
323300
destination: '/docs/reference/providers/pulumi',

0 commit comments

Comments
 (0)