mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-06 09:59:00 +02:00
🐛 Fix DISABLE_LANDING_PAGE
not working (#572)
This commit is contained in:
parent
5962b6c8f1
commit
86eaf5df10
2 changed files with 2 additions and 3 deletions
|
@ -12,7 +12,7 @@ export const getServerSideProps: GetServerSideProps = composeGetServerSideProps(
|
|||
async () => {
|
||||
// TODO (Luke Vella) [2023-03-14]: Remove this once we split the app from the landing page
|
||||
if (process.env.DISABLE_LANDING_PAGE === "true") {
|
||||
return { notFound: true };
|
||||
return { redirect: { destination: "/new", permanent: false } };
|
||||
}
|
||||
return { props: {} };
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue