Skip to content

Commit 7488bbf

Browse files
karan925tyaga001
authored andcommitted
Update base URL and redirect to external documentation
1 parent 3992b66 commit 7488bbf

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/pages/index.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
import { Redirect } from "@docusaurus/router";
1+
import { useEffect } from "react";
22

33
export default function Home(): JSX.Element {
44
// const { siteConfig } = useDocusaurusContext();
5-
return <Redirect to="/docs/introduction" />;
5+
useEffect(() => {
6+
// Redirect to external URL when the component mounts
7+
window.location.href = "https://docs.coderabbit.ai";
8+
}, []);
9+
return <></>;
610
}

0 commit comments

Comments
 (0)