diff --git a/apps/app/pages/index.tsx b/apps/app/pages/index.tsx index a795211ff..5bb60c4fb 100644 --- a/apps/app/pages/index.tsx +++ b/apps/app/pages/index.tsx @@ -1,13 +1,15 @@ -// lib +import { useEffect } from "react"; import { homePageRedirect } from "lib/auth"; // types import type { NextPage, NextPageContext } from "next"; +import { useRouter } from "next/router"; -const Home: NextPage = () => null; +const Home: NextPage = () => { + const router = useRouter(); -export const getServerSideProps = (ctx: NextPageContext) => { - const cookies = ctx.req?.headers.cookie; - return homePageRedirect(cookies); + useEffect(() => { + router.push("/onboarding"); + }, []); + return <>loading; }; - export default Home;