diff --git a/website/src/theme/DocPage/index.js b/website/src/theme/DocPage/index.js index af69ddeb..14c7e03c 100644 --- a/website/src/theme/DocPage/index.js +++ b/website/src/theme/DocPage/index.js @@ -141,7 +141,7 @@ function DocPage(props) { // CUSTOM DOCPAGE // Do not use Github authentication when in local env or Netlify deploy preview if (typeof window === "undefined" || - (typeof window !== "undefined" && (window?.location?.hostname !== "localhost" || !window?.location?.hostname.includes('deploy-preview')))) { + (typeof window !== "undefined" && window?.location?.hostname !== "localhost" && !window.location.hostname.includes('deploy'))) { const [isUserAuthorized, setIsUserAuthorized] = useState() const [isLoading, setIsLoading] = useState(true) const [redirectState, setRedirectState] = useState()