Skip to content

Commit b4d996b

Browse files
committed
Fix
1 parent 60989fa commit b4d996b

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

web/pages/home.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,16 @@ import {LoggedOutHome} from "web/components/home/home";
44

55
export const TEST_DOWNTIME = true
66

7-
export default function Home() {
7+
export async function getServerSideProps() {
88
if (TEST_DOWNTIME) {
9-
throw new Error('500 - This is a test error')
9+
// This will cause Next.js to return a 500 *at runtime*
10+
throw new Error('500 - Test downtime');
1011
}
12+
13+
return { props: {} };
14+
}
15+
16+
export default function Home() {
1117
return (
1218
<PageBase trackPageView={'home'}>
1319
<Col className="items-center">

0 commit comments

Comments
 (0)