Skip to content

Commit

Permalink
docs: update domains
Browse files Browse the repository at this point in the history
  • Loading branch information
jpedroschmitz committed Aug 16, 2024
1 parent ab97bab commit e999adb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/funny-pigs-wink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphcms/rich-text-react-renderer': patch
---

Update documentation
9 changes: 7 additions & 2 deletions packages/react-renderer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -510,12 +510,17 @@ function App() {
}
```

Since the images are in the Hygraph CDN, you need to specify our domain in the `next.config.js` file. For more information, check [this guide](https://nextjs.org/docs/basic-features/image-optimization#domains).
Since the images are in the Hygraph CDN, you need to specify our domain in the `next.config.js` file. For more information, check [this guide](https://nextjs.org/docs/app/api-reference/components/image#remotepatterns).

```js
module.exports = {
images: {
domains: ['media.graphassets.com'],
remotePatterns: [
{
protocol: 'https',
hostname: '**.graphassets.com',
},
],
},
};
```
Expand Down

0 comments on commit e999adb

Please # to comment.