-
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathnext.config.mjs
More file actions
46 lines (42 loc) · 1.14 KB
/
next.config.mjs
File metadata and controls
46 lines (42 loc) · 1.14 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
import { createMDX } from "fumadocs-mdx/next";
/** Turbopack requires project-relative alias targets (not absolute paths). */
const opentuiJsxRuntimeTurbo = "./lib/opentui-bridge/react-jsx-runtime.ts";
const opentuiJsxDevRuntimeTurbo =
"./lib/opentui-bridge/react-jsx-dev-runtime.ts";
/** @type {import('next').NextConfig} */
const nextConfig = {
devIndicators: false,
images: {
remotePatterns: [
{
hostname: "avatars.githubusercontent.com",
protocol: "https",
},
{
hostname: "images.unsplash.com",
protocol: "https",
},
],
},
outputFileTracingIncludes: {
"/*": ["./registry/**/*"],
},
redirects() {
return [
{
destination: "/docs/components/ink/:category/:component",
permanent: true,
source: "/docs/components/:category((?!ink|opentui)[^/]+)/:component",
},
];
},
turbopack: {
resolveAlias: {
"@opentui/react/jsx-dev-runtime": opentuiJsxDevRuntimeTurbo,
"@opentui/react/jsx-runtime": opentuiJsxRuntimeTurbo,
ink: "ink-web",
},
},
};
const withMDX = createMDX({});
export default withMDX(nextConfig);