forked from Ishmaello/wiki-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
redirects.js
89 lines (88 loc) · 2.66 KB
/
redirects.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
module.exports = [
// General Redirects
{
to: '/',
from: ['/en/latest', '/en/'],
},
/*
{
to: '/docs/category/general-reference/',
from: Array(5).fill('/docs/operate/gas-token'),
},
*/
// Heimdall Redirects
...[
'antehandler', 'checkpoint', 'encoder', 'overview', 'peppermint', 'stdtx',
'transactions', 'types', 'validator-key-management', 'validators'
].map(doc => ({
to: `/docs/pos/design/heimdall/${doc}`,
from: `/docs/pos/heimdall/${doc}`,
})),
// Bor Redirects
...['', 'consensus', 'core_concepts', 'overview'].map(doc => ({
to: `/docs/pos/design/bor${doc ? '/' + doc : ''}`,
from: `/docs/pos/bor${doc ? '/' + doc : ''}`,
})),
// State-Sync Redirects
...['how-state-sync-works', 'state-sync'].map(doc => ({
to: `/docs/pos/design/bridge/state-sync/${doc}`,
from: `/docs/pos/state-sync/${doc}`,
})),
// L1-L2-Communication Redirects
...[
'ethereum-to-matic', 'fx-portal', 'matic-to-ethereum', 'state-transfer',
'fx-portal/fx-example'
].map(doc => ({
to: `/docs/pos/design/bridge/l1-l2-communication/${doc}`,
from: `/docs/pos/l1-l2-communication/${doc}`,
})),
// POS Node Operate Redirects
...[
'full-node-binaries', 'full-node-binaries', 'full-node-binaries',
'full-node-binaries', 'full-node-binaries', 'erigon-client', 'erigon-client',
'erigon-client'
].map(doc => ({
to: `/docs/pos/operate/node/${doc}`,
from: `/docs/operate/${doc}`,
})),
// POS Operate Redirects
...[
'mapped-tokens', 'default-ports',
'snapshot-instructions-heimdall-bor'
].map(doc => ({
to: `/docs/pos/reference/${doc}`,
from: `/docs/operate/${doc}`,
})),
// Wallets Redirects
...[
'getting-started', 'polygon-web-wallet/web-wallet-v3-guide', 'adding-a-custom-token'
].map(doc => ({
to: `/docs/tools/wallets/${doc}`,
from: `/docs/develop/wallets/${doc}`,
})),
// Other Redirects
{
to: '/docs/pos/pos-faqs',
from: ['/docs/faq/technical-faqs'],
},
{
to: '/docs/pos/design/bridge/ethereum-polygon/tools/widget',
from: ['/docs/pos/ethereum-polygon/tools/widget'],
},
{
to: '/docs/category/build-an-edge-powered-chain/',
from: '/docs/supernets/*',
},
{
to: '/docs/edge/what-is-edge/',
from: '/docs/supernets/operate/supernets-quick-start/',
},
{
to: '/docs/edge/faq/',
from: '/docs/supernets/supernets-faq/',
},
{
to: '/docs/pos/validator/topup-heimdall-fee/',
from: '/docs/pos/operate/validator/topup-heimdall-fee',
}
];