mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-14 00:19:16 +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,
|
url: customFields.unleashProxyUrl as string,
|
||||||
disableRefresh: true,
|
disableRefresh: true,
|
||||||
appName: `docs.getunleash.io-${customFields.environment}`,
|
appName: `docs.getunleash.io-${customFields.environment}`,
|
||||||
...(typeof fetch !=="undefined" ? unleashSsrOptions : {})
|
...(typeof fetch === "undefined" ? unleashSsrOptions : {})
|
||||||
};
|
};
|
||||||
|
|
||||||
const [showFeedback, setShowFeedback] = React.useState(false);
|
const [showFeedback, setShowFeedback] = React.useState(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user