Skip to content

Commit

Permalink
fix: correct the check for fetch to use SSR config in SSR situations
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasheartman committed Mar 2, 2022
1 parent d210fcb commit 1054f74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/src/theme/Root.tsx
Expand Up @@ -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);
Expand Down

0 comments on commit 1054f74

Please sign in to comment.