|
1 | | -import { createMDX } from "fumadocs-mdx/next"; |
| 1 | +// @ts-check |
2 | 2 |
|
3 | | -const withMDX = createMDX(); |
| 3 | +import * as importx from "importx"; |
4 | 4 |
|
5 | | -/** @type {import('next').NextConfig} */ |
6 | | -const config = { |
7 | | - reactStrictMode: true, |
8 | | - experimental: { |
9 | | - // ppr: true, |
10 | | - inlineCss: true, |
11 | | - // reactCompiler: true, |
12 | | - // viewTransition: true, |
13 | | - }, |
14 | | - typescript: { |
15 | | - ignoreBuildErrors: true, |
16 | | - }, |
17 | | - eslint: { |
18 | | - ignoreDuringBuilds: true, |
19 | | - }, |
20 | | - serverExternalPackages: [ |
21 | | - "typescript", |
22 | | - "twoslash", |
23 | | - ], |
24 | | - redirects() { |
25 | | - return [ |
26 | | - { |
27 | | - source: "/docs", |
28 | | - destination: "/docs/getting-started", |
29 | | - permanent: true, |
30 | | - }, |
31 | | - { |
32 | | - source: "/docs/installation", |
33 | | - destination: "/docs/getting-started", |
34 | | - permanent: true, |
35 | | - }, |
36 | | - { |
37 | | - source: "/docs/getting-started", |
38 | | - destination: "/docs/getting-started/javascript", |
39 | | - permanent: true, |
40 | | - }, |
41 | | - { |
42 | | - source: "/docs/getting-started/javascript-with-alternative-parser", |
43 | | - destination: "/docs/using-an-alternative-parser/babel-eslint-parser", |
44 | | - permanent: true, |
45 | | - }, |
46 | | - { |
47 | | - source: "/docs/getting-started/typescript-with-alternative-parser", |
48 | | - destination: "/docs/using-an-alternative-parser/ts-blank-eslint-parser", |
49 | | - permanent: true, |
50 | | - }, |
51 | | - { |
52 | | - source: "/docs/rules", |
53 | | - destination: "/docs/rules/overview", |
54 | | - permanent: true, |
55 | | - }, |
56 | | - { |
57 | | - source: "/faq", |
58 | | - destination: "/docs/faq", |
59 | | - permanent: true, |
60 | | - }, |
61 | | - { |
62 | | - source: "/roadmap", |
63 | | - destination: "/docs/roadmap", |
64 | | - permanent: true, |
65 | | - }, |
66 | | - { |
67 | | - source: "/presets/:wildcard", |
68 | | - destination: "/docs/presets/:wildcard", |
69 | | - permanent: true, |
70 | | - }, |
71 | | - { |
72 | | - source: "/rules/:wildcard", |
73 | | - destination: "/docs/rules/:wildcard", |
74 | | - permanent: true, |
75 | | - }, |
76 | | - // Redirects for deprecated rules |
77 | | - { |
78 | | - source: "/docs/rules/use-jsx-vars", |
79 | | - destination: "/docs/rules/jsx-uses-vars", |
80 | | - permanent: true, |
81 | | - }, |
82 | | - { |
83 | | - source: "/docs/rules/jsx-no-duplicate-props", |
84 | | - destination: "/docs/rules/jsx-no-duplicate-props", |
85 | | - permanent: true, |
86 | | - }, |
87 | | - { |
88 | | - source: "/docs/rules/no-complicated-conditional-rendering", |
89 | | - destination: "/docs/rules/no-complex-conditional-rendering", |
90 | | - permanent: true, |
91 | | - }, |
92 | | - { |
93 | | - source: "/docs/rules/ensure-forward-ref-using-ref", |
94 | | - destination: "/docs/rules/no-useless-forward-ref", |
95 | | - permanent: true, |
96 | | - }, |
97 | | - { |
98 | | - source: "/docs/rules/no-nested-components", |
99 | | - destination: "/docs/rules/no-nested-component-definitions", |
100 | | - permanent: true, |
101 | | - }, |
102 | | - { |
103 | | - source: "/docs/rules/dom-no-children-in-void-dom-elements", |
104 | | - destination: "/docs/rules/dom-no-void-elements-with-children", |
105 | | - permanent: true, |
106 | | - }, |
107 | | - { |
108 | | - source: "/docs/rules/hooks-extra-ensure-use-memo-has-non-empty-deps", |
109 | | - destination: "/docs/rules/hooks-extra-no-unnecessary-use-memo", |
110 | | - permanent: true, |
111 | | - }, |
112 | | - { |
113 | | - source: "/docs/rules/hooks-extra-ensure-use-callback-has-non-empty-deps", |
114 | | - destination: "/docs/rules/hooks-extra-no-unnecessary-use-callback", |
115 | | - permanent: true, |
116 | | - }, |
117 | | - { |
118 | | - source: "/docs/rules/hooks-extra-ensure-custom-hooks-using-other-hooks", |
119 | | - destination: "/docs/rules/hooks-extra-no-unnecessary-use-prefix", |
120 | | - permanent: true, |
121 | | - }, |
122 | | - { |
123 | | - source: "/docs/rules/hooks-extra-no-redundant-custom-hook", |
124 | | - destination: "/docs/rules/hooks-extra-no-unnecessary-use-prefix", |
125 | | - permanent: true, |
126 | | - }, |
127 | | - { |
128 | | - source: "/docs/rules/hooks-extra-no-useless-custom-hooks", |
129 | | - destination: "/docs/rules/hooks-extra-no-unnecessary-use-prefix", |
130 | | - permanent: true, |
131 | | - }, |
132 | | - ]; |
133 | | - }, |
134 | | -}; |
| 5 | +const mod = await importx.import("./next.config.ts", { |
| 6 | + cache: true, |
| 7 | + loader: "native", |
| 8 | + parentURL: import.meta.url, |
| 9 | +}); |
135 | 10 |
|
136 | | -export default withMDX(config); |
| 11 | +export default mod.default; |
0 commit comments