Add 404 and 500 page #446 (#624)

* Add 404 and 500 page

Co-authored-by: hashrock <hashrock@users.noreply.github.com>
This commit is contained in:
Michael Pfister
2022-08-16 23:52:06 +09:00
committed by GitHub
co-authored by hashrock
parent 55f657827f
commit 3431555f95
5 changed files with 70 additions and 24 deletions
+11 -13
View File
@@ -44,20 +44,18 @@ export default function DefaultErrorPage(props: ErrorPageProps) {
>
An error occured during route handling or page rendering.
</p>
{message && (
<pre
style={{
margin: 0,
fontSize: "12pt",
overflowY: "auto",
padding: 16,
paddingTop: 0,
fontFamily: "monospace",
}}
>
{message && <pre
style={{
margin: 0,
fontSize: "12pt",
overflowY: "auto",
padding: 16,
paddingTop: 0,
fontFamily: "monospace",
}}
>
{message}
</pre>
)}
</pre>}
</div>
</div>
);