redirect to landing page

This commit is contained in:
m5r
2021-08-27 03:17:46 +08:00
parent 20b6a7a996
commit 1c93ac00ef
5 changed files with 29 additions and 11 deletions

View File

@ -29,7 +29,7 @@ export const getServerSideProps: GetServerSideProps = async ({ req, res }) => {
await session.$revoke();
return {
redirect: {
destination: Routes.Home().pathname,
destination: Routes.LandingPage().pathname,
permanent: false,
},
};

View File

@ -94,7 +94,7 @@ export const getServerSideProps: GetServerSideProps<Props> = async ({ req, res }
await session.$revoke();
return {
redirect: {
destination: Routes.Home().pathname,
destination: Routes.LandingPage().pathname,
permanent: false,
},
};

View File

@ -129,7 +129,7 @@ export const getServerSideProps: GetServerSideProps = async ({ req, res }) => {
await session.$revoke();
return {
redirect: {
destination: Routes.Home().pathname,
destination: Routes.LandingPage().pathname,
permanent: false,
},
};