forked from ava-labs/avalanche-academy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.mjs
45 lines (42 loc) · 1.04 KB
/
next.config.mjs
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
import createMDX from 'fumadocs-mdx/config';
const withMDX = createMDX();
/** @type {import('next').NextConfig} */
const config = {
reactStrictMode: true,
async redirects() {
return [
{
source: '/:path*',
has: [
{
type: 'host',
value: 'academy.avax.com',
},
],
destination: 'https://academy.avax.network/:path*',
permanent: true,
},
{
source: '/course/subnet-architecture',
destination: '/course/multi-chain-architecture',
permanent: true,
},
{
source: '/course/teleporter',
destination: '/course/interchain-messaging',
permanent: true,
},
{
source: '/course/interchain-messaging/14-access-chainlink-vrf-services',
destination: '/course/icm-chainlink/01-access-chainlink-vrf-services',
permanent: true,
},
{
source: '/start',
destination: '/',
permanent: true,
},
]
},
};
export default withMDX(config);