Skip to content

Commit b71762c

Browse files
committed
build: added mdx-js to render mdx files
1 parent 71394bf commit b71762c

File tree

3 files changed

+107
-52
lines changed

3 files changed

+107
-52
lines changed

next.config.mjs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
/** @type {import('next').NextConfig} */
2-
const nextConfig = {
3-
output: 'export',
4-
};
2+
const nextConfig = {};
53

64
export default nextConfig;
5+
6+
// import withMDX from '@next/mdx';
7+
8+
// /** @type {import('next').NextConfig} */
9+
// const nextConfig = {
10+
// output: 'export',
11+
// pageExtensions: ['js', 'jsx', 'md', 'mdx', 'ts', 'tsx'],
12+
// };
13+
14+
// export default withMDX()(nextConfig);

package-lock.json

Lines changed: 93 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
"buildgh": "next build && next export"
1111
},
1212
"dependencies": {
13+
"@mdx-js/loader": "^3.1.0",
14+
"@mdx-js/react": "^3.1.0",
15+
"@next/mdx": "^15.1.6",
1316
"class-variance-authority": "^0.7.0",
1417
"clsx": "^2.1.1",
1518
"copy-to-clipboard": "^3.3.3",

0 commit comments

Comments
 (0)