Skip to content

Commit 41ba117

Browse files
committed
landing page redirect
1 parent e8a9f34 commit 41ba117

File tree

1 file changed

+86
-19
lines changed

1 file changed

+86
-19
lines changed

next.config.js

Lines changed: 86 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,38 +5,89 @@ const withNextra = require('nextra')({
55
remarkPlugins: [],
66
rehypePlugins: [],
77
},
8-
})
8+
});
99

1010
module.exports = withNextra({
1111
async redirects() {
1212
return [
13+
// Landing page redirect
14+
{ source: '/', destination: 'https://docs.dydx.xyz', permanent: true },
15+
1316
// Original top-level
1417
{ source: '/security', destination: '/other-security', permanent: true },
15-
{ source: '/terms_of_use_and_privacy_policy.md', destination: '/other-terms_of_use_and_privacy_policy.md', permanent: true },
18+
{
19+
source: '/terms_of_use_and_privacy_policy.md',
20+
destination: '/other-terms_of_use_and_privacy_policy.md',
21+
permanent: true,
22+
},
1623
{ source: '/FAQ', destination: '/user-faqs', permanent: true },
1724

1825
// Architecture
19-
{ source: '/architecture/architectural_overview', destination: '/concepts-architecture/architectural_overview', permanent: true },
20-
{ source: '/architecture/indexer', destination: '/concepts-architecture/indexer', permanent: true },
26+
{
27+
source: '/architecture/architectural_overview',
28+
destination: '/concepts-architecture/architectural_overview',
29+
permanent: true,
30+
},
31+
{
32+
source: '/architecture/indexer',
33+
destination: '/concepts-architecture/indexer',
34+
permanent: true,
35+
},
2136

2237
// Deposits and Withdrawals
23-
{ source: '/deposits_and_withdrawals/:slug*', destination: '/api_integration-deposits_and_withdrawals/:slug*', permanent: true },
38+
{
39+
source: '/deposits_and_withdrawals/:slug*',
40+
destination: '/api_integration-deposits_and_withdrawals/:slug*',
41+
permanent: true,
42+
},
2443

2544
// Developers
26-
{ source: '/developers/constants', destination: '/api_integration-constants', permanent: true },
27-
{ source: '/developers/open_source_repositories', destination: '/api_integration-repositories.md', permanent: true },
45+
{
46+
source: '/developers/constants',
47+
destination: '/api_integration-constants',
48+
permanent: true,
49+
},
50+
{
51+
source: '/developers/open_source_repositories',
52+
destination: '/api_integration-repositories.md',
53+
permanent: true,
54+
},
2855

2956
// Developers - Clients
30-
{ source: '/developers/clients/:slug*', destination: '/api_integration-clients/:slug*', permanent: true },
57+
{
58+
source: '/developers/clients/:slug*',
59+
destination: '/api_integration-clients/:slug*',
60+
permanent: true,
61+
},
3162

3263
// Developers - Indexer
33-
{ source: '/developers/indexer/:slug*', destination: '/api_integration-indexer/:slug*', permanent: true },
64+
{
65+
source: '/developers/indexer/:slug*',
66+
destination: '/api_integration-indexer/:slug*',
67+
permanent: true,
68+
},
3469

3570
// Getting started
36-
{ source: '/getting_started/depositing_and_user_journeys', destination: 'introduction-getting_started', permanent: true },
37-
{ source: '/getting_started/margin_calculations', destination: 'concepts-trading/margin', permanent: true },
38-
{ source: '/getting_started/onboarding_faqs', destination: 'introduction-onboarding_faqs', permanent: true },
39-
{ source: '/getting_started/rewards_fees_and_parameters', destination: 'concepts-trading/rewards_fees_and_parameters', permanent: true },
71+
{
72+
source: '/getting_started/depositing_and_user_journeys',
73+
destination: 'introduction-getting_started',
74+
permanent: true,
75+
},
76+
{
77+
source: '/getting_started/margin_calculations',
78+
destination: 'concepts-trading/margin',
79+
permanent: true,
80+
},
81+
{
82+
source: '/getting_started/onboarding_faqs',
83+
destination: 'introduction-onboarding_faqs',
84+
permanent: true,
85+
},
86+
{
87+
source: '/getting_started/rewards_fees_and_parameters',
88+
destination: 'concepts-trading/rewards_fees_and_parameters',
89+
permanent: true,
90+
},
4091

4192
// Governance
4293
{ source: '/governance/:slug*', destination: '/users-governance/:slug*', permanent: true },
@@ -45,10 +96,18 @@ module.exports = withNextra({
4596
{ source: '/guides/:slug*', destination: '/api_integration-guides/:slug*', permanent: true },
4697

4798
// Network
48-
{ source: '/network/:slug*', destination: '/infrastructure_providers-network/:slug*', permanent: true },
99+
{
100+
source: '/network/:slug*',
101+
destination: '/infrastructure_providers-network/:slug*',
102+
permanent: true,
103+
},
49104

50105
// Operators
51-
{ source: '/operators/:slug*', destination: '/infrastructure_providers-operators/:slug*', permanent: true },
106+
{
107+
source: '/operators/:slug*',
108+
destination: '/infrastructure_providers-operators/:slug*',
109+
permanent: true,
110+
},
52111

53112
// Rewards
54113
{ source: '/rewards/:slug*', destination: '/users-rewards/:slug*', permanent: true },
@@ -57,8 +116,16 @@ module.exports = withNextra({
57116
{ source: '/trading:slug*', destination: '/api_integration-trading/:slug*', permanent: true },
58117

59118
// Validators
60-
{ source: '/validators/:slug*', destination: '/infrastructure_providers-validators/:slug*', permanent: true },
61-
{ source: '/validators/upgrades/:slug*', destination: '/infrastructure_providers-validators/upgrades/:slug*', permanent: true },
62-
]
119+
{
120+
source: '/validators/:slug*',
121+
destination: '/infrastructure_providers-validators/:slug*',
122+
permanent: true,
123+
},
124+
{
125+
source: '/validators/upgrades/:slug*',
126+
destination: '/infrastructure_providers-validators/upgrades/:slug*',
127+
permanent: true,
128+
},
129+
];
63130
},
64-
})
131+
});

0 commit comments

Comments
 (0)