-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnext.config.mjs
More file actions
50 lines (48 loc) · 2.87 KB
/
Copy pathnext.config.mjs
File metadata and controls
50 lines (48 loc) · 2.87 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import nextra from 'nextra'
const withNextra = nextra({
mdxOptions: {
rehypePrettyCodeOptions: {
theme: {
dark: 'tokyo-night',
light: 'github-light',
},
},
},
})
export default withNextra({
async redirects() {
return [
{
source: '/',
has: [{ type: 'host', value: 'fluttermix.com' }],
destination: 'https://concepta.dev/mix',
permanent: false,
},
{
source: '/',
has: [{ type: 'host', value: 'www.fluttermix.com' }],
destination: 'https://concepta.dev/mix',
permanent: false,
},
{ source: '/docs', destination: '/documentation', permanent: true },
{ source: '/docs/:path*', destination: '/documentation/:path*', permanent: true },
{ source: '/naked_ui', destination: '/naked-ui', permanent: true },
{ source: '/documentation', destination: '/documentation/mix/overview/introduction', permanent: true },
{ source: '/documentation/ack', destination: '/documentation/ack/getting-started/overview', permanent: true },
{ source: '/documentation/ack/getting-started', destination: '/documentation/ack/getting-started/overview', permanent: true },
{ source: '/documentation/ack/essentials', destination: '/documentation/ack/essentials/schemas', permanent: true },
{ source: '/documentation/ack/how-to-guides', destination: '/documentation/ack/how-to-guides/flutter-form-validation', permanent: true },
{ source: '/documentation/ack/advanced', destination: '/documentation/ack/advanced/codecs', permanent: true },
{ source: '/documentation/ack/reference', destination: '/documentation/ack/reference/api-reference', 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 },
// The package was renamed from mix_tailwinds to mix_winds; keep the
// published landing and ecosystem URLs reachable.
{ source: '/mix-tailwinds', destination: '/mix-winds', permanent: true },
{ source: '/documentation/mix/ecosystem/mix-tailwinds', destination: '/documentation/mix/ecosystem/mix-winds', permanent: true },
]
},
})