From e999adb5868e4167703765717edba8add6dea58a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pedro=20Schmitz?= Date: Fri, 16 Aug 2024 10:44:46 -0300 Subject: [PATCH] docs: update domains --- .changeset/funny-pigs-wink.md | 5 +++++ packages/react-renderer/README.md | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 .changeset/funny-pigs-wink.md diff --git a/.changeset/funny-pigs-wink.md b/.changeset/funny-pigs-wink.md new file mode 100644 index 0000000..d1ad22f --- /dev/null +++ b/.changeset/funny-pigs-wink.md @@ -0,0 +1,5 @@ +--- +'@graphcms/rich-text-react-renderer': patch +--- + +Update documentation diff --git a/packages/react-renderer/README.md b/packages/react-renderer/README.md index 1aa8250..3fb14d9 100644 --- a/packages/react-renderer/README.md +++ b/packages/react-renderer/README.md @@ -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', + }, + ], }, }; ```