disable github auth when localhost environment
Signed-off-by: slumbering <slumbering.pierrot@gmail.com>
This commit is contained in:
parent
a12e08bd76
commit
da08aa54e9
@ -139,6 +139,7 @@ function DocPage(props) {
|
|||||||
);
|
);
|
||||||
|
|
||||||
// CUSTOM DOCPAGE
|
// CUSTOM DOCPAGE
|
||||||
|
if (typeof window !== "undefined" && window?.location?.hostname !== "localhost") {
|
||||||
const [isUserAuthorized, setIsUserAuthorized] = useState()
|
const [isUserAuthorized, setIsUserAuthorized] = useState()
|
||||||
const [isLoading, setIsLoading] = useState(true)
|
const [isLoading, setIsLoading] = useState(true)
|
||||||
const [redirectState, setRedirectState] = useState()
|
const [redirectState, setRedirectState] = useState()
|
||||||
@ -177,8 +178,7 @@ function DocPage(props) {
|
|||||||
<DocPageAuthentication />
|
<DocPageAuthentication />
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// END CUSTOM DOCPAGE
|
// END CUSTOM DOCPAGE
|
||||||
|
|
||||||
if (!currentDocRoute) {
|
if (!currentDocRoute) {
|
||||||
|
Reference in New Issue
Block a user