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:
parent
d210fcb05c
commit
1054f74141
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user