Skip to content

Commit 4c97ab6

Browse files
authored
Merge pull request #383 from 17hz/feature/mdx-demo
feat: create MDX demo page
2 parents b9b2d1e + 8e1f65f commit 4c97ab6

File tree

4 files changed

+877
-212
lines changed

4 files changed

+877
-212
lines changed
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
import { codeInspectorPlugin } from 'code-inspector-plugin';
22
import type { NextConfig } from 'next';
3+
import createMDX from '@next/mdx'
4+
5+
const withMDX = createMDX({
6+
// Add markdown plugins here, as desired
7+
})
38

49
const nextConfig: NextConfig = {
10+
pageExtensions: ['js', 'jsx', 'md', 'mdx', 'ts', 'tsx'],
511
turbopack: {
612
rules: codeInspectorPlugin({
713
bundler: 'turbopack',
814
}),
915
},
1016
};
1117

12-
export default nextConfig;
18+
export default withMDX(nextConfig)

demos/turbopack-next15/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
"eslint": "^9",
2424
"eslint-config-next": "15.4.4",
2525
"@eslint/eslintrc": "^3",
26-
"code-inspector-plugin": "workspace:^"
26+
"code-inspector-plugin": "workspace:^",
27+
"@next/mdx": "15.4.4",
28+
"@mdx-js/loader": "^3.1.0"
2729
}
2830
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
I **love** using [Next.js](https://nextjs.org/)

0 commit comments

Comments
 (0)