-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnext.config.js
37 lines (34 loc) · 929 Bytes
/
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
const withMDX = require('@next/mdx')({
extension: /\.(md|mdx)$/,
});
const nextConfig = {
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'md', 'mdx'],
redirects: async () => {
return [
{
source: '/join',
destination:
'https://docs.google.com/forms/d/e/1FAIpQLScWRbp9lMacf0Xjul2y2kgLvgsTYqDo1BlrDWBkEAac0UrY0w/viewform',
permanent: false,
},
{
source: '/discord',
destination: 'https://discord.gg/MfuzHurGpd',
permanent: false,
}
];
},
exportPathMap: function () {
return {
'/': { page: '/' },
'/about': { page: '/about' },
'/rules': { page: '/rules' },
'/conduct': { page: '/conduct' },
'/sponsorship': { page: '/sponsorship' },
'/privacy': { page: '/privacy' },
'/terms': { page: '/terms' },
'/contact': { page: '/contact' }
};
},
};
module.exports = withMDX(nextConfig)