Skip to content

Commit 54e3c31

Browse files
authored
fix: redirect (#2247)
1 parent 23df45e commit 54e3c31

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/pages/index.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
import React, { useEffect } from "react";
22
import { useHistory } from "@docusaurus/router";
3-
import ExecutionEnvironment from "@docusaurus/ExecutionEnvironment";
43

54
export default function HomeRedirect() {
65
const history = useHistory();
76
useEffect(() => {
8-
if (ExecutionEnvironment?.canUseDOM) {
9-
history.replace("/guides/");
10-
}
7+
history.replace("/guides/");
118
}, []);
129
return null;
1310
}

0 commit comments

Comments
 (0)