-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.mjs
More file actions
27 lines (25 loc) · 1.22 KB
/
next.config.mjs
File metadata and controls
27 lines (25 loc) · 1.22 KB
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
import nextra from 'nextra'
const withNextra = nextra({
mdxOptions: {
rehypePrettyCodeOptions: {
theme: {
dark: 'tokyo-night',
light: 'github-light',
},
},
},
})
export default withNextra({
async redirects() {
return [
{ source: '/docs', destination: '/documentation', permanent: true },
{ source: '/docs/:path*', destination: '/documentation/:path*', permanent: true },
{ source: '/documentation', destination: '/documentation/mix/overview/introduction', permanent: true },
{ source: '/documentation/overview/:path*', destination: '/documentation/mix/overview/:path*', permanent: true },
{ source: '/documentation/guides/:path*', destination: '/documentation/mix/guides/:path*', permanent: true },
{ source: '/documentation/widgets/:path*', destination: '/documentation/mix/widgets/:path*', permanent: true },
{ source: '/documentation/tutorials/:path*', destination: '/documentation/mix/tutorials/:path*', permanent: true },
{ source: '/documentation/ecosystem/:path*', destination: '/documentation/mix/ecosystem/:path*', permanent: true },
]
},
})