disable github auth when localhost environment
Signed-off-by: slumbering <slumbering.pierrot@gmail.com>
This commit is contained in:
parent
126cd00623
commit
f3e5f810f6
@ -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) {
|
||||
|
Reference in New Issue
Block a user