-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
56 lines (53 loc) · 1.52 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
/** @type {import("next").NextConfig} */
const nextConfig = {
// experimental: {
// mdxRs: true,
// }
async redirects() {
return [
{
source: "/instruction/a/:slug",
destination: "/instruction/:slug",
permanent: true,
},
{
source: "/instruction/b/:slug",
destination: "/instruction/:slug",
permanent: true,
},
{
source: "/instruction/c/:slug",
destination: "/instruction/:slug",
permanent: true,
},
{
source: "/instruction/d/:slug",
destination: "/instruction/:slug",
permanent: true,
},
{
source: "/instruction/e/:slug",
destination: "/instruction/:slug",
permanent: true,
},
{
source: "/instruction/f/:slug",
destination: "/instruction/:slug",
permanent: true,
},
{
source: "/instruction/l/:slug",
destination: "/instruction/:slug",
permanent: true,
},
];
},
};
// package.json:
// "@mdx-js/loader": "^2.3.0",
// "@mdx-js/react": "^2.3.0",
// "@next/mdx": "^13.4.6",
// "@types/mdx": "^2.0.5",
// const withMDX = require("@next/mdx")();
// module.exports = withMDX(nextConfig);
module.exports = nextConfig;