-
Notifications
You must be signed in to change notification settings - Fork 1
/
next.config.mjs
43 lines (37 loc) · 909 Bytes
/
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
import { remarkCodeHike } from "@code-hike/mdx";
import createMDX from "@next/mdx";
import remarkGfm from "remark-gfm";
import theme from "shiki/themes/github-dark.json" assert {type: "json"};
/** @type {import('next').NextConfig} */
const nextConfig = {
async redirects() {
return [
{
source: "/docs",
destination: "/docs/dashboard",
permanent: true,
},
];
},
images: {
domains: ['images.unsplash.com'],
},
reactStrictMode: false,
trailingSlash: true,
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
experimental: {
scrollRestoration: true,
},
};
const withMDX = createMDX({
extension: /\.mdx?$/,
options: {
remarkPlugins: [[remarkGfm], [remarkCodeHike, {
theme,
showCopyButton: true,
}]],
rehypePlugins: [],
providerImportSource: "@mdx-js/react",
},
})
export default withMDX(nextConfig);