mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: removing get service side props from onboarding page
This commit is contained in:
parent
39f151ce73
commit
0d05556ad9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user