docs: 🐛 another try with env variables

Signed-off-by: slumbering <slumbering.pierrot@gmail.com>
This commit is contained in:
slumbering
2021-06-14 14:42:41 +02:00
parent 5227b73771
commit 8b0f6535af
3 changed files with 8 additions and 4 deletions

View File

@@ -139,7 +139,7 @@ function DocPage(props) {
);
// CUSTOM DOCPAGE
if (typeof window !== "undefined" && window?.location?.hostname !== "localhost") {
if (typeof window === "undefined" || (typeof window !== "undefined" && window?.location?.hostname !== "localhost")) {
const [isUserAuthorized, setIsUserAuthorized] = useState()
const [isLoading, setIsLoading] = useState(true)
const [redirectState, setRedirectState] = useState()