From 0d05556ad977e0d7449cb7f0721815cdc501c6ef Mon Sep 17 00:00:00 2001 From: sriram veeraghanta Date: Wed, 5 Apr 2023 15:04:21 -0400 Subject: [PATCH] fix: removing get service side props from onboarding page --- apps/app/pages/onboarding.tsx | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/apps/app/pages/onboarding.tsx b/apps/app/pages/onboarding.tsx index b2a7e987f..922bc4269 100644 --- a/apps/app/pages/onboarding.tsx +++ b/apps/app/pages/onboarding.tsx @@ -90,25 +90,25 @@ const Onboarding: NextPage = () => { ); }; -export const getServerSideProps = async (ctx: GetServerSidePropsContext) => { - const user = await requiredAuth(ctx.req?.headers.cookie); +// export const getServerSideProps = async (ctx: GetServerSidePropsContext) => { +// const user = await requiredAuth(ctx.req?.headers.cookie); - const redirectAfterSignIn = ctx.resolvedUrl; +// const redirectAfterSignIn = ctx.resolvedUrl; - if (!user) { - return { - redirect: { - destination: `/signin?next=${redirectAfterSignIn}`, - permanent: false, - }, - }; - } +// if (!user) { +// return { +// redirect: { +// destination: `/signin?next=${redirectAfterSignIn}`, +// permanent: false, +// }, +// }; +// } - return { - props: { - user, - }, - }; -}; +// return { +// props: { +// user, +// }, +// }; +// }; export default Onboarding;