-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathnext.config.mjs
54 lines (51 loc) · 1.04 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
import nextra from "nextra";
/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
reactStrictMode: true,
experimental: {
legacyBrowsers: false,
},
trailingSlash: false,
staticPageGenerationTimeout: 120,
async redirects() {
return [
{
source: "/restake",
destination: "/restake/introduction/",
permanent: true,
},
{
source: "/developers",
destination: "/developers/blueprints/introduction",
permanent: true,
},
{
source: "/operators",
destination: "/operators/introduction/",
permanent: true,
},
];
},
rewrites() {
return {
// beforeFiles: [
// {
// source: "/sitemap.xml",
// destination:
// //TODO: SUBMIT SITE MAP
// "",
// },
// ],
};
},
};
const withNextra = nextra({
theme: "nextra-theme-docs",
themeConfig: "./theme.config.tsx",
staticImage: true,
flexsearch: true,
latex: true,
});
export default withNextra(nextConfig);