Skip to content

Commit aecdaa2

Browse files
committed
Clean home
1 parent 7e924c2 commit aecdaa2

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

web/pages/index.tsx

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,11 @@ import {useUser} from 'web/hooks/use-user'
44
import {LoggedOutHome} from "web/components/home/home";
55
import {ProfilesHome} from "web/components/profiles/profiles-home";
66

7-
export const TEST_DOWNTIME = false
8-
97
// To simulate downtime, you need the error to happen at runtime, not at build time.
108
// That means the page must be server-rendered, not statically generated.
11-
export async function getServerSideProps() {
12-
if (TEST_DOWNTIME) {
13-
// This will cause Next.js to return a 500 *at runtime*
14-
throw new Error('500 - Test downtime');
15-
}
16-
17-
return {props: {}};
18-
}
9+
// export async function getServerSideProps() {
10+
// throw new Error('500 - Test downtime');
11+
// }
1912

2013
export default function ProfilesPage() {
2114
const user = useUser();
@@ -30,7 +23,6 @@ export default function ProfilesPage() {
3023
<PageBase trackPageView={'user profiles'}>
3124
<Col className="items-center">
3225
<Col className={'w-full rounded px-3 py-4 sm:px-6'}>
33-
{/*<ProfilesHome/>*/}
3426
{user ? <ProfilesHome/> : <LoggedOutHome/>}
3527
</Col>
3628
</Col>

0 commit comments

Comments
 (0)