-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
118 lines (114 loc) · 2.69 KB
/
Copy pathnext.config.ts
File metadata and controls
118 lines (114 loc) · 2.69 KB
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
import createMDX from '@next/mdx';
import type { NextConfig } from 'next';
const nextConfig: NextConfig = {
pageExtensions: ['ts', 'tsx', 'mdx', 'md'],
redirects: async () => [
{
source: '/community.html',
destination: '/community',
permanent: true,
},
{
source: '/discord.html',
destination: '/discord',
permanent: true,
},
{
source: '/downloads.html',
destination: '/downloads',
permanent: true,
},
{
source: '/dump.html',
destination: '/dump',
permanent: true,
},
{
source: '/do-not-use-mohist.html',
destination: '/do-not-use-mohist',
permanent: true,
},
{
source: '/wiki',
destination: '/wiki/introduction',
permanent: true,
},
{
source: '/wiki/Home.html',
destination: '/wiki/introduction',
permanent: true,
},
{
source: '/wiki/BannerMeta.html',
destination: '/wiki/banner-meta',
permanent: true,
},
{
source: '/wiki/Color-Permissions.html',
destination: '/wiki/color-permissions',
permanent: true,
},
{
source: '/wiki/Command-Cooldowns.html',
destination: '/wiki/command-cooldowns',
permanent: true,
},
{
source: '/wiki/Discord-Tutorial.html',
destination: '/wiki/discord',
permanent: true,
},
{
source: '/wiki/Discord-Link.html',
destination: '/wiki/discord-link',
permanent: true,
},
{
source: '/wiki/GeoIP.html',
destination: '/wiki/geo-ip',
permanent: true,
},
{
source: '/wiki/Improvements.html',
destination: '/wiki/improvements',
permanent: true,
},
{
source: '/wiki/Installing-EssentialsX.html',
destination: '/wiki/installing',
permanent: true,
},
{
source: '/wiki/Keywords.html',
destination: '/wiki/keywords',
permanent: true,
},
{
source: '/wiki/Locale.html',
destination: '/wiki/translations',
permanent: true,
},
{
source: '/wiki/Module-Breakdown.html',
destination: '/wiki/modules',
permanent: true,
},
{
source: '/wiki/Text-Commands.html',
destination: '/wiki/text-commands',
permanent: true,
},
],
experimental: {
optimizePackageImports: ['@mantine/core', '@mantine/hooks'],
},
};
const withMDX = createMDX({
options: {
remarkPlugins: [['remark-gfm', { strict: true, throwOnError: true }]],
rehypePlugins: [['rehype-slug', { strict: true, throwOnError: true }]],
},
});
export default withMDX(nextConfig);
import { initOpenNextCloudflareForDev } from '@opennextjs/cloudflare';
initOpenNextCloudflareForDev();