1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-09 00:18:00 +01:00

fix: correct the check for fetch to use SSR config in SSR situations

This commit is contained in:
Thomas Heartman 2022-03-02 11:42:40 +01:00
parent d210fcb05c
commit 1054f74141

View File

@ -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);