We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ceef82a commit 093d2d0Copy full SHA for 093d2d0
docs/documentation/next.config.mjs
@@ -21,6 +21,11 @@
21
*/
22
23
import { createMDX } from "fumadocs-mdx/next";
24
+import path from "path";
25
+import { fileURLToPath } from "url";
26
+
27
+const __filename = fileURLToPath(import.meta.url);
28
+const __dirname = path.dirname(__filename);
29
30
const withMDX = createMDX();
31
@@ -48,6 +53,11 @@ const config = {
48
53
},
49
54
// Suppress warnings in webpack
50
55
webpack: (config, { isServer }) => {
56
+ // Add @ path alias
57
+ config.resolve.alias = {
58
+ ...config.resolve.alias,
59
+ '@': path.resolve(__dirname),
60
+ };
51
61
if (!isServer) {
52
62
config.resolve.fallback = {
63
...config.resolve.fallback,
0 commit comments