disable github auth when localhost environment

Signed-off-by: slumbering <slumbering.pierrot@gmail.com>
This commit is contained in:
slumbering 2021-06-11 17:03:04 +02:00
parent 126cd00623
commit f3e5f810f6

View File

@ -139,6 +139,7 @@ function DocPage(props) {
);
// CUSTOM DOCPAGE
if (typeof window !== "undefined" && window?.location?.hostname !== "localhost") {
const [isUserAuthorized, setIsUserAuthorized] = useState()
const [isLoading, setIsLoading] = useState(true)
const [redirectState, setRedirectState] = useState()
@ -177,8 +178,7 @@ function DocPage(props) {
<DocPageAuthentication />
)
}
}
// END CUSTOM DOCPAGE
if (!currentDocRoute) {