From aecdaa287521907c34d33085f7524367ffb5f660 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Sun, 23 Nov 2025 16:09:30 +0100 Subject: [PATCH] Clean home --- web/pages/index.tsx | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/web/pages/index.tsx b/web/pages/index.tsx index 99a49ff0..e4e8986f 100644 --- a/web/pages/index.tsx +++ b/web/pages/index.tsx @@ -4,18 +4,11 @@ import {useUser} from 'web/hooks/use-user' import {LoggedOutHome} from "web/components/home/home"; import {ProfilesHome} from "web/components/profiles/profiles-home"; -export const TEST_DOWNTIME = false - // To simulate downtime, you need the error to happen at runtime, not at build time. // That means the page must be server-rendered, not statically generated. -export async function getServerSideProps() { - if (TEST_DOWNTIME) { - // This will cause Next.js to return a 500 *at runtime* - throw new Error('500 - Test downtime'); - } - - return {props: {}}; -} +// export async function getServerSideProps() { +// throw new Error('500 - Test downtime'); +// } export default function ProfilesPage() { const user = useUser(); @@ -30,7 +23,6 @@ export default function ProfilesPage() { - {/**/} {user ? : }