Move to /

This commit is contained in:
MartinBraquet
2025-11-10 18:54:09 +01:00
parent b4d996bd14
commit 02d165829f
2 changed files with 11 additions and 11 deletions

View File

@@ -2,17 +2,6 @@ import {PageBase} from 'web/components/page-base'
import {Col} from 'web/components/layout/col'
import {LoggedOutHome} from "web/components/home/home";
export const TEST_DOWNTIME = true
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 default function Home() {
return (
<PageBase trackPageView={'home'}>

View File

@@ -4,7 +4,18 @@ 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 = true
// 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 default function ProfilesPage() {
const user = useUser();