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) => {
|
// export const getServerSideProps = async (ctx: GetServerSidePropsContext) => {
|
||||||
const user = await requiredAuth(ctx.req?.headers.cookie);
|
// const user = await requiredAuth(ctx.req?.headers.cookie);
|
||||||
|
|
||||||
const redirectAfterSignIn = ctx.resolvedUrl;
|
// const redirectAfterSignIn = ctx.resolvedUrl;
|
||||||
|
|
||||||
if (!user) {
|
// if (!user) {
|
||||||
return {
|
// return {
|
||||||
redirect: {
|
// redirect: {
|
||||||
destination: `/signin?next=${redirectAfterSignIn}`,
|
// destination: `/signin?next=${redirectAfterSignIn}`,
|
||||||
permanent: false,
|
// permanent: false,
|
||||||
},
|
// },
|
||||||
};
|
// };
|
||||||
}
|
// }
|
||||||
|
|
||||||
return {
|
// return {
|
||||||
props: {
|
// props: {
|
||||||
user,
|
// user,
|
||||||
},
|
// },
|
||||||
};
|
// };
|
||||||
};
|
// };
|
||||||
|
|
||||||
export default Onboarding;
|
export default Onboarding;
|
||||||
|
Loading…
Reference in New Issue
Block a user