mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-29 18:26:34 +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
|
@ -40,8 +40,7 @@ const nextConfig = {
|
|||
return [
|
||||
{
|
||||
source: "/",
|
||||
destination:
|
||||
process.env.DISABLE_LANDING_PAGE === "true" ? "/new" : "/home",
|
||||
destination: "/home",
|
||||
},
|
||||
];
|
||||
},
|
||||
|
|
|
@ -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
Reference in a new issue