File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed
Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -4,18 +4,11 @@ import {useUser} from 'web/hooks/use-user'
44import { LoggedOutHome } from "web/components/home/home" ;
55import { 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
2013export 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 >
You can’t perform that action at this time.
0 commit comments