There was an error while loading. Please reload this page.
1 parent 60989fa commit b4d996bCopy full SHA for b4d996b
1 file changed
web/pages/home.tsx
@@ -4,10 +4,16 @@ import {LoggedOutHome} from "web/components/home/home";
4
5
export const TEST_DOWNTIME = true
6
7
-export default function Home() {
+export async function getServerSideProps() {
8
if (TEST_DOWNTIME) {
9
- throw new Error('500 - This is a test error')
+ // This will cause Next.js to return a 500 *at runtime*
10
+ throw new Error('500 - Test downtime');
11
}
12
+
13
+ return { props: {} };
14
+}
15
16
+export default function Home() {
17
return (
18
<PageBase trackPageView={'home'}>
19
<Col className="items-center">
0 commit comments