From 386de78244d3a14fd161bae806aa09c7931bd9dd Mon Sep 17 00:00:00 2001 From: Christian Bromann Date: Tue, 5 Nov 2024 15:55:28 -0800 Subject: [PATCH 1/2] react: add docs for excludeServerSideRenderingFor option --- docs/framework-integration/react.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/framework-integration/react.md b/docs/framework-integration/react.md index 6d087626a..1d7592228 100644 --- a/docs/framework-integration/react.md +++ b/docs/framework-integration/react.md @@ -502,9 +502,16 @@ export const config: Config = { }; ``` -:::note -Next.js support is only available for applications that use the [Next.js App Router](https://nextjs.org/docs/app). -::: +### excludeServerSideRenderingFor + +**Optional** + +**Type: `string[]`** + +Allows user to exclude a list of components to be server side rendered by Next.js or other React +frameworks. This may be useful if you would like to generally ignore some components from being +rendered on the server or if you like roll out SSR support for your design system one component at +a time. ## FAQ's From 8d08529c6db3d3b7a8742f9db45bb27e8f51efab Mon Sep 17 00:00:00 2001 From: Christian Bromann Date: Wed, 6 Nov 2024 14:07:12 -0800 Subject: [PATCH 2/2] Update docs/framework-integration/react.md Co-authored-by: Tanner Reits <47483144+tanner-reits@users.noreply.github.com> --- docs/framework-integration/react.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/framework-integration/react.md b/docs/framework-integration/react.md index 1d7592228..f73a64f68 100644 --- a/docs/framework-integration/react.md +++ b/docs/framework-integration/react.md @@ -508,7 +508,7 @@ export const config: Config = { **Type: `string[]`** -Allows user to exclude a list of components to be server side rendered by Next.js or other React +Allows users to exclude a list of components from server side rendering by Next.js or other React frameworks. This may be useful if you would like to generally ignore some components from being rendered on the server or if you like roll out SSR support for your design system one component at a time.