From 86eaf5df10bfaf529afe3e92b4dbbd9ccde18b51 Mon Sep 17 00:00:00 2001 From: Luke Vella Date: Thu, 16 Mar 2023 10:59:32 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20`DISABLE=5FLANDING=5FPAGE`?= =?UTF-8?q?=20not=20working=20(#572)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/next.config.js | 3 +-- apps/web/src/pages/home.tsx | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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: {} }; },