Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🐛 Fix `DISABLE_LANDING_PAGE` not working (#572)

Luke Vella86eaf5df10bf
diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index 681057b7a..f1e63cc19 100644
--- a/apps/web/next.config.js
+++ b/apps/web/next.config.js
@@ -40,8 +40,7 @@ const nextConfig = {
return [
{
source: "/",
- destination:
- process.env.DISABLE_LANDING_PAGE === "true" ? "/new" : "/home",
+ destination: "/home",
},
];
},
diff --git a/apps/web/src/pages/home.tsx b/apps/web/src/pages/home.tsx
index ee7043acb..260ece4df 100644
--- a/apps/web/src/pages/home.tsx
+++ b/apps/web/src/pages/home.tsx
@@ -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: {} };
},