forked from intentui/intentui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.mjs
More file actions
104 lines (103 loc) · 2.67 KB
/
next.config.mjs
File metadata and controls
104 lines (103 loc) · 2.67 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
import { createMDX } from "fumadocs-mdx/next"
const withMDX = createMDX()
/** @type {import("next").NextConfig} */
const config = {
reactCompiler: true,
experimental: {
viewTransition: true,
},
devIndicators: false,
outputFileTracingIncludes: {
"/**": ["./src/content/**", "./content/**"]
},
typescript: {
ignoreBuildErrors: true,
},
webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.fallback = {
...config.resolve.fallback,
fs: false,
"node:fs": false,
path: false,
}
}
return config
},
async rewrites() {
return [
{ source: "/r/:slug", destination: "/r/:slug.json" },
{ source: "/r/hooks/:slug", destination: "/r/:slug.json" },
{ source: "/r/lib/:slug", destination: "/r/:slug.json" },
{
source: "/docs/:path*.md",
destination: "/llm/:path*",
},
]
},
async redirects() {
return [
{
source: "/radio",
destination: "/docs/components/forms/radio-group",
permanent: true,
},
{
source: "/docs/getting-started/mcp-server",
destination: "/docs/getting-started/ai",
permanent: true,
},
{
source: "/docs/components/charts/area-chart",
destination: "/docs/components/visualizations/area-chart",
permanent: true,
},
{
source: "/themes",
destination: "https://design.intentui.com/themes",
permanent: true,
},
{
source: "/docs",
destination: "/docs/getting-started/installation",
permanent: false,
},
{
source: "/docs/2.x/:path*",
destination: "/docs/:path*",
permanent: true,
},
{
source: "/docs/components/layouts/aside",
destination: "/docs/components/layouts/sidebar",
permanent: true,
},
{
source: "/docs/components/collections/choicebox",
destination: "/docs/components/collections/choice-box",
permanent: true,
},
{
source: "/choicebox",
destination: "/docs/components/collections/choice-box",
permanent: true,
},
{
source: "/docs/components/charts/setup",
destination: "/docs/components/visualizations/area-chart",
permanent: true,
},
{
source: "/docs/components/surfaces/chart",
destination: "/docs/components/visualizations/area-chart",
permanent: true,
},
{
source: "/docs/components/collections/accordion",
destination: "/docs/components/navigation/disclosure-group",
permanent: true,
}
]
},
}
export default withMDX(config)