Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions docs/pages/nextjs-14.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ At the top of the file, simply add:

To avoid marking an entire page as a Client Component, you can create a basic wrapper around any component, which you can then use throughout your application:

```jsx copy showLineNumbers
```tsx copy showLineNumbers
"use client";

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

const CldImage = (props: CldImageProps) => {
return <CldImageDefault {...props} />
}
return <CldImageDefault {...props} />;
};

export default CldImage;
```
Expand All @@ -67,9 +67,13 @@ import { getCldOgImageUrl } from 'next-cloudinary';
export const metadata = {
openGraph: {
...
images: getCldOgImageUrl({
src: '<Public ID>'
})
images: [
{
url: getCldOgImageUrl({
src: 'your-public-id'
})
}
]
},
};
```
Expand Down