From 1054f74141480b4098399c689a1d1b95d94be6a1 Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Wed, 2 Mar 2022 11:42:40 +0100 Subject: [PATCH] fix: correct the check for fetch to use SSR config in SSR situations --- website/src/theme/Root.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/src/theme/Root.tsx b/website/src/theme/Root.tsx index 62536a8c93..d89436590a 100644 --- a/website/src/theme/Root.tsx +++ b/website/src/theme/Root.tsx @@ -21,7 +21,7 @@ function Root({ children }) { url: customFields.unleashProxyUrl as string, disableRefresh: true, appName: `docs.getunleash.io-${customFields.environment}`, - ...(typeof fetch !=="undefined" ? unleashSsrOptions : {}) + ...(typeof fetch === "undefined" ? unleashSsrOptions : {}) }; const [showFeedback, setShowFeedback] = React.useState(false);