diff --git a/next.config.js b/next.config.js index 36e18e3..4436b22 100644 --- a/next.config.js +++ b/next.config.js @@ -3,7 +3,6 @@ const nextConfig = { experimental: { appDir: true, }, - basePath: '/docs', }; module.exports = nextConfig; diff --git a/src/app/[...not_found]/page.tsx b/src/app/[...not_found]/page.tsx new file mode 100644 index 0000000..fd08563 --- /dev/null +++ b/src/app/[...not_found]/page.tsx @@ -0,0 +1,5 @@ +import { notFound } from 'next/navigation'; + +export default function Page() { + notFound(); +} diff --git a/src/app/error.module.css b/src/app/error.module.css new file mode 100644 index 0000000..0a348cc --- /dev/null +++ b/src/app/error.module.css @@ -0,0 +1,17 @@ +.container { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + height: 100vh; + width: 100vw; +} + +.navLink { + text-decoration: none; + color: #64adac; + font-weight: bold; + cursor: pointer; + display: flex; + align-items: center; +} \ No newline at end of file diff --git a/src/app/error.tsx b/src/app/error.tsx new file mode 100644 index 0000000..532a7fd --- /dev/null +++ b/src/app/error.tsx @@ -0,0 +1,20 @@ +'use client'; + +import styles from './error.module.css'; + +export default function GlobalError({ + error, + reset, +}: { + error: Error; + reset: () => void; +}) { + return ( +