forked from irsyadadl/justd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.mjs
68 lines (67 loc) · 1.92 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
const isDev = process.argv.indexOf('dev') !== -1
const isBuild = process.argv.indexOf('build') !== -1
if (!process.env.VELITE_STARTED && (isDev || isBuild)) {
process.env.VELITE_STARTED = '1'
const { build } = await import('velite')
await build({ watch: isDev, clean: !isDev })
}
/** @type {import('next').NextConfig} */
export default {
experimental: {
optimizePackageImports: ["shiki"]
},
async redirects() {
return [
{
source: "/docs",
destination: "/docs/getting-started/installation",
permanent: false
},
{
source: "/design-system",
destination: "/docs/getting-started/installation",
permanent: false
},
{
source: "/docs/components/collections/accordion",
destination: "/docs/components/navigation/disclosure-group",
permanent: true
},
{
source: "/docs/components/controls/command",
destination: "/docs/components/controls/command-menu",
permanent: false
},
{
source: "/docs/components/forms/select",
destination: "/docs/components/pickers/select",
permanent: false
},
{
source: "/docs/components/forms/select",
destination: "/docs/components/pickers/select",
permanent: false
},
{
source: "/docs/components/statuses/toaster",
destination: "/docs/components/statuses/toast",
permanent: false
},
{
source: "/docs/components/collections/carousel",
destination: "/docs/components/media/carousel",
permanent: false
},
{
source: "/docs/components/forms/choicebox",
destination: "/docs/components/collections/choicebox",
permanent: false
},
{
source: "/docs/components/forms/multiple-select",
destination: "/docs/components/pickers/multiple-select",
permanent: false
}
]
}
}