forked from mevblocker/web
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.mjs
More file actions
36 lines (33 loc) · 756 Bytes
/
next.config.mjs
File metadata and controls
36 lines (33 loc) · 756 Bytes
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
// next.config.mjs
import remarkGfm from "remark-gfm"
import createMDX from "@next/mdx"
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
compiler: {
styledComponents: true,
},
i18n: {
locales: ["en"],
defaultLocale: "en",
},
pageExtensions: ["js", "jsx", "ts", "tsx", "md", "mdx"],
async redirects() {
return [
{
source: "/docs",
destination:
"https://docs.cow.fi/mevblocker?utm_source=cow.fi&utm_medium=web&utm_content=mev-blocker-docs-link",
permanent: false,
},
]
},
}
const withMDX = createMDX({
extension: /\.mdx?$/,
options: {
remarkPlugins: [remarkGfm],
rehypePlugins: [],
},
})
export default withMDX(nextConfig)