Skip to content

Commit 833e847

Browse files
committed
Fix TypeScript import, OG metadata, use client, and placeholders in Next.js 13/14 docs (#611)
1 parent e33bffa commit 833e847

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

docs/pages/nextjs-14.mdx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ To avoid marking an entire page as a Client Component, you can create a basic wr
4040
```jsx copy showLineNumbers
4141
"use client";
4242

43-
import { CldImage as CldImageDefault, CldImageProps } from 'next-cloudinary';
43+
import { CldImage as CldImageDefault, type CldImageProps } from 'next-cloudinary';
4444

4545
const CldImage = (props: CldImageProps) => {
4646
return <CldImageDefault {...props} />
@@ -67,9 +67,13 @@ import { getCldOgImageUrl } from 'next-cloudinary';
6767
export const metadata = {
6868
openGraph: {
6969
...
70-
images: getCldOgImageUrl({
71-
src: '<Public ID>'
72-
})
70+
images: [
71+
{
72+
url: getCldOgImageUrl({
73+
src: 'your-public-id',
74+
}),
75+
},
76+
],
7377
},
7478
};
7579
```

0 commit comments

Comments
 (0)