-
Notifications
You must be signed in to change notification settings - Fork 33
/
next.config.js
128 lines (124 loc) · 2.79 KB
/
next.config.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
/** @type {import('next').NextConfig} */
const path = require('path');
const nextConfig = {
async redirects() {
return [
{
source: '/docs/:path*',
destination: 'https://storage.googleapis.com/ergo-cms-media/docs/:path*',
permanent: true,
},
{
source: '/img/:path*',
destination: 'https://storage.googleapis.com/ergo-cms-media/img/:path*',
permanent: true,
},
{
source: '/about/',
destination: '/discover/#DiscoverERG',
permanent: true,
},
{
source: '/basics/',
destination: '/discover/#DiscoverERG',
permanent: true,
},
{
source: '/wallets/',
destination: '/get-erg/#Wallets',
permanent: true,
},
{
source: '/exchanges/',
destination: '/get-erg/#Exchanges',
permanent: true,
},
{
source: '/contribute/',
destination: '/community/#Contribute',
permanent: true,
},
{
source: '/software/',
destination: '/discover/#DiscoverERG',
permanent: true,
},
{
source: '/use_cases/',
destination: '/#UniqueErgo',
permanent: true,
},
{
source: '/foundation/',
destination: '/community/#Foundation',
permanent: true,
},
{
source: '/hall_of_fame/',
destination: '/community/#HallOfFame',
permanent: true,
},
{
source: '/documents/',
destination: '/discover/#Documents',
permanent: true,
},
{ source: '/faq/', destination: '/discover/#FAQ', permanent: true },
{
source: '/mining/',
destination: '/get-erg/#Mining',
permanent: true,
},
{
source: '/privacy/',
destination: '/privacy-policy/',
permanent: true,
},
{
source: '/mobile-wallets/',
destination: '/ergo-wallet-app/',
permanent: true,
},
];
},
reactStrictMode: true,
trailingSlash: true,
i18n: {
locales: [
'default',
'en',
//'es',
'de',
'it',
//'pt',
'hu',
'ru',
'cn',
'id',
// 'hi',
'tr',
// 'ro',
// 'sk',
// 'zh',
],
defaultLocale: 'default',
localeDetection: false,
},
sassOptions: {
includePaths: [path.join(__dirname, 'styles')],
},
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
images: {
domains: ['storage.googleapis.com'],
},
};
const withMDX = require('@next/mdx')({
extension: /\.mdx?$/,
options: {
remarkPlugins: [],
rehypePlugins: [],
// If you use `MDXProvider`, uncomment the following line.
// providerImportSource: "@mdx-js/react",
},
});
module.exports = withMDX(nextConfig);