From 458391a882c0ffb0e025fa994a9e59f40bafb66e Mon Sep 17 00:00:00 2001 From: karl Date: Fri, 28 Mar 2025 15:30:36 -0400 Subject: [PATCH] feat: test 404 page --- app/[page]/page.tsx | 1 + app/collections/industrial/[...notfound]/page.tsx | 5 +++++ app/collections/industrial/page.tsx | 1 + 3 files changed, 7 insertions(+) create mode 100644 app/collections/industrial/[...notfound]/page.tsx diff --git a/app/[page]/page.tsx b/app/[page]/page.tsx index c64504dc2..4d90629c4 100644 --- a/app/[page]/page.tsx +++ b/app/[page]/page.tsx @@ -29,6 +29,7 @@ export default async function Page(props: { const params = await props.params const page = await getPage(params.page) + console.log('pagepagepagepage', page) if (!page) return notFound() return ( diff --git a/app/collections/industrial/[...notfound]/page.tsx b/app/collections/industrial/[...notfound]/page.tsx new file mode 100644 index 000000000..229a921b5 --- /dev/null +++ b/app/collections/industrial/[...notfound]/page.tsx @@ -0,0 +1,5 @@ +import { notFound } from 'next/navigation' + +export default function CatchAllNotFoundPage() { + notFound() +} diff --git a/app/collections/industrial/page.tsx b/app/collections/industrial/page.tsx index 9aa606ce2..1e2e6ed47 100644 --- a/app/collections/industrial/page.tsx +++ b/app/collections/industrial/page.tsx @@ -1,4 +1,5 @@ import Layout from '@/app/layout' +import { notFound } from 'next/navigation' import PageHeroGrid from '@/components/pages/PageHeroGrid' // Assets