Skip to content

Commit

Permalink
Fix Server Props error with ContentLayer and Next 13.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Kawtar Choubari committed Sep 5, 2023
1 parent 02e8f0a commit 9d4df14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions components/mdx/mdx-components.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from "react";
import "./mdx.css";
import Image from "next/image";
import Image, { ImageProps } from "next/image";
import { useMDXComponent } from "next-contentlayer/hooks";

import { Callout } from "@/components/mdx/callout";
Expand Down Expand Up @@ -172,7 +172,8 @@ const components = {
{...props}
/>
),
Image,
// Image,
Image: (props: ImageProps) => <Image {...props} />,
Callout,
Card: MdxCard,
};
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1128,7 +1128,7 @@ config-chain@^1.1.13:

contentlayer@^0.3.4:
version "0.3.4"
resolved "https://registry.npmjs.org/contentlayer/-/contentlayer-0.3.4.tgz"
resolved "https://registry.yarnpkg.com/contentlayer/-/contentlayer-0.3.4.tgz#519ad446e38d533a2166a7bd3bd5188c5be019ab"
integrity sha512-FYDdTUFaN4yqep0waswrhcXjmMJnPD5iXDTtxcUCGdklfuIrXM2xLx51xl748cHmGA6IsC+27YZFxU6Ym13QIA==
dependencies:
"@contentlayer/cli" "0.3.4"
Expand Down Expand Up @@ -2673,7 +2673,7 @@ nanoid@^3.3.4, nanoid@^3.3.6:

next-contentlayer@^0.3.4:
version "0.3.4"
resolved "https://registry.npmjs.org/next-contentlayer/-/next-contentlayer-0.3.4.tgz"
resolved "https://registry.yarnpkg.com/next-contentlayer/-/next-contentlayer-0.3.4.tgz#dd88ff27bca94ec8c619d77d225a0b15f2e6ccb2"
integrity sha512-UtUCwgAl159KwfhNaOwyiI7Lg6sdioyKMeh+E7jxx0CJ29JuXGxBEYmCI6+72NxFGIFZKx8lvttbbQhbnYWYSw==
dependencies:
"@contentlayer/core" "0.3.4"
Expand Down

0 comments on commit 9d4df14

Please sign in to comment.