From 7af665cd761f87945e28915f673b6c3b2bf6a9a3 Mon Sep 17 00:00:00 2001 From: Yogender-verma Date: Fri, 19 Jun 2026 10:41:35 +0530 Subject: [PATCH] feat: add custom 404 page with dynamic requested path --- vodka-web/app/not-found.tsx | 48 +++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 vodka-web/app/not-found.tsx diff --git a/vodka-web/app/not-found.tsx b/vodka-web/app/not-found.tsx new file mode 100644 index 0000000..51b6763 --- /dev/null +++ b/vodka-web/app/not-found.tsx @@ -0,0 +1,48 @@ +"use client"; + +import Link from "next/link"; +import { usePathname } from "next/navigation"; + +export default function NotFound() { + const pathname = usePathname(); + + return ( +
+ + {/* Main 404 */} +

+ 404 +

+ +

+ Page not found +

+ +

+ The page you are looking for doesn’t exist or has been moved. +

+ + {/* Requested text */} +

+ Requested: {pathname} +

+ + {/* Buttons */} +
+ + Go Home + + + +
+
+ ); +} \ No newline at end of file