forked from inkonchain/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.mjs
More file actions
36 lines (32 loc) · 736 Bytes
/
Copy pathnext.config.mjs
File metadata and controls
36 lines (32 loc) · 736 Bytes
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
import nextra from "nextra";
import path from "path";
import remarkCodeImport from "remark-code-import";
import { fileURLToPath } from "url";
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const withNextra = nextra({
theme: "nextra-theme-docs",
themeConfig: "./theme.config.tsx",
defaultShowCopyCode: true,
mdxOptions: {
remarkPlugins: [remarkCodeImport],
},
});
const config = withNextra({
eslint: {
ignoreDuringBuilds: true,
},
images: {
unoptimized: true,
},
webpack: (config) => {
config.resolve.alias = {
...config.resolve.alias,
"@": path.join(__dirname, "src"),
};
return config;
},
experimental: {
mdxRs: true,
},
});
export default config;