Skip to content

Commit 38d0e4d

Browse files
committed
chore: use next-mdx-remote-client
1 parent a05a0b5 commit 38d0e4d

File tree

3 files changed

+65
-43
lines changed

3 files changed

+65
-43
lines changed

components/markdown/custom-mdx.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import { MDXRemote, type MDXRemoteProps } from "next-mdx-remote/rsc";
2-
3-
import remarkGfm from "remark-gfm";
1+
import { MDXRemote, type MDXRemoteProps } from "next-mdx-remote-client/rsc";
42
import rehypePrettyCode from "rehype-pretty-code";
53
import rehypeSlug from "rehype-slug";
4+
import remarkGfm from "remark-gfm";
65
import remarkMath from "remark-math";
76

87
import CustomMDXComponents from ".";

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"lodash-es": "^4.17.21",
3535
"lucide-react": "^0.536.0",
3636
"next": "15.4.2-canary.31",
37-
"next-mdx-remote": "^5.0.0",
37+
"next-mdx-remote-client": "^2.1.3",
3838
"next-themes": "^0.4.6",
3939
"react": "^19.1.1",
4040
"react-dom": "^19.1.1",

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)