Skip to content

Commit ea469ac

Browse files
workaround for <title> in not-found.tsx
1 parent a93a6cf commit ea469ac

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

src/app/not-found.tsx

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
import { usePathname } from "next/navigation"
44
import { useMounted } from "nextra/hooks"
55

6+
import { Footer } from "@/components/footer"
7+
import { Navbar } from "@/components/navbar/navbar"
8+
import { topLevelNavbarItems } from "@/components/navbar/top-level-items"
9+
610
import { StripesDecoration } from "@/app/(conf)/conf/_design-system/stripes-decoration"
711
import stripesMask from "@/components/404-page/image.webp"
812

913
import { Button } from "./(conf)/conf/_design-system/button"
1014

11-
import "@/globals.css"
12-
import "@/app/colors.css"
13-
1415
export default function NotFoundPage() {
1516
const pathname = usePathname()
1617
const mounted = useMounted()
@@ -31,6 +32,15 @@ export default function NotFoundPage() {
3132

3233
return (
3334
<>
35+
{/*
36+
No support for metadata in not-found.tsx yet
37+
https://github.com/vercel/next.js/pull/47328#issuecomment-1488891093
38+
*/}
39+
<title>
40+
Not Found | Please click the button to file a broken-link issue if this
41+
should be a valid route.
42+
</title>
43+
<Navbar items={topLevelNavbarItems} />
3444
<style>{".nextra-nav-container.sticky { position: fixed }"}</style>
3545
<div className="relative">
3646
<Stripes />
@@ -47,6 +57,7 @@ export default function NotFoundPage() {
4757
</div>
4858
</div>
4959
</div>
60+
<Footer />
5061
</>
5162
)
5263
}

0 commit comments

Comments
 (0)