-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.mjs
67 lines (64 loc) · 1.42 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import createMDX from "@next/mdx";
import rehypeSlug from "rehype-slug";
/** @type {import('next').NextConfig} */
const nextConfig = {
redirects: async () => {
return [
{
source: "/meeting",
destination: "https://savvycal.com/schemamap/talk",
permanent: false,
},
{
source: "/demo",
destination: "https://app.schemamap.io/demo",
permanent: false,
},
{
source: "/docs",
destination: "https://docs.schemamap.io",
permanent: false,
},
{
source: "/blog",
destination: "https://docs.schemamap.io/blog",
permanent: false,
},
{
source: "/status",
destination: "https://stats.uptimerobot.com/ZELp9fP5Xn/",
permanent: false,
}
];
},
pageExtensions: ["js", "jsx", "md", "mdx", "ts", "tsx"],
reactStrictMode: true,
webpack(config) {
config.module.rules.push({
test: /\.svg$/,
use: [
{
loader: "@svgr/webpack",
options: {
svgoConfig: {
plugins: [
{
name: "removeViewBox",
active: false,
},
],
},
},
},
],
});
return config;
},
};
const withMDX = createMDX({
options: {
remarkPlugins: [],
rehypePlugins: [rehypeSlug],
},
});
export default withMDX(nextConfig);