-
-
Notifications
You must be signed in to change notification settings - Fork 305
/
home.tsx
20 lines (17 loc) · 635 Bytes
/
home.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { GetServerSideProps } from "next";
import Home from "@/components/home";
import { composeGetServerSideProps } from "@/utils/auth";
import { withPageTranslations } from "@/utils/with-page-translations";
export default function Page() {
return <Home />;
}
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 { props: {} };
},
withPageTranslations(["common", "homepage"]),
);