-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnext.config.mjs
More file actions
42 lines (39 loc) · 962 Bytes
/
next.config.mjs
File metadata and controls
42 lines (39 loc) · 962 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
37
38
39
40
41
42
import { createMDX } from 'fumadocs-mdx/next'
/** @type {import('next').NextConfig} */
const config = {
reactStrictMode: true,
async redirects() {
return [
{
source: '/docs/authentication/:path*',
destination: '/docs/api/authentication/:path*',
permanent: true,
},
{
source: '/docs/api/reference',
destination: '/docs/api/reference/search',
permanent: true,
},
{
source: '/docs/reference/:path*',
destination: '/docs/api/reference/:path*',
permanent: true,
},
{
source: '/docs/libraries/:path*',
destination: '/docs/api/libraries/:path*',
permanent: true,
},
{
source: '/docs',
destination: '/docs/api',
permanent: true,
},
]
},
}
const withMDX = createMDX({
// customise the config file path
// configPath: "source.config.ts"
})
export default withMDX(config)