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