feat: add catch all route and pages for 404 and 500 errors
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
'use client';
|
||||
|
||||
import styles from './error.module.css';
|
||||
|
||||
export default function GlobalError({
|
||||
error,
|
||||
reset,
|
||||
}: {
|
||||
error: Error;
|
||||
reset: () => void;
|
||||
}) {
|
||||
return (
|
||||
<div className={styles.container}>
|
||||
<h2>Something went wrong!</h2>
|
||||
<a className={styles.navLink} onClick={() => reset()}>
|
||||
Try again
|
||||
</a>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user