We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23df45e commit 54e3c31Copy full SHA for 54e3c31
src/pages/index.tsx
@@ -1,13 +1,10 @@
1
import React, { useEffect } from "react";
2
import { useHistory } from "@docusaurus/router";
3
-import ExecutionEnvironment from "@docusaurus/ExecutionEnvironment";
4
5
export default function HomeRedirect() {
6
const history = useHistory();
7
useEffect(() => {
8
- if (ExecutionEnvironment?.canUseDOM) {
9
- history.replace("/guides/");
10
- }
+ history.replace("/guides/");
11
}, []);
12
return null;
13
}
0 commit comments