1
2
3
4
5
<Btn mode={'primary-outline'}>
<I18nLink href={'/404-csr'}>This is a client-side navigation (CSR)</I18nLink>
</Btn>
This is not CSR, it's not necessarily SSR either, it can be either static rendering or SSR.
1
2
3
4
5
<Btn mode={'primary-outline'}>
<a href={'/404-static'}>This is a normal navigation</a>
</Btn>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
const TopLevel500ErrorPage: NextPage<Props> = (props): JSX.Element => {
if (isBrowser()) {
// Only throw on browser, otherwise it fails when building the app on Vercel and deployment fails altogether
throw new Error('Top level 500 error example');
}
return (
<DemoLayout
{...props}
pageName={'page-500-error'}
headProps={{
seoTitle: 'Top-level 500 error example - Next Right Now',
}}
Sidebar={BuiltInUtilitiesSidebar}
>
Top-level 500 error example
</DemoLayout>
);
};