mirror of
https://github.com/vercel/commerce.git
synced 2025-05-30 13:06:58 +00:00
feat: test 404 page
This commit is contained in:
parent
05ffc542eb
commit
458391a882
@ -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 (
|
||||
|
5
app/collections/industrial/[...notfound]/page.tsx
Normal file
5
app/collections/industrial/[...notfound]/page.tsx
Normal file
@ -0,0 +1,5 @@
|
||||
import { notFound } from 'next/navigation'
|
||||
|
||||
export default function CatchAllNotFoundPage() {
|
||||
notFound()
|
||||
}
|
@ -1,4 +1,5 @@
|
||||
import Layout from '@/app/layout'
|
||||
import { notFound } from 'next/navigation'
|
||||
import PageHeroGrid from '@/components/pages/PageHeroGrid'
|
||||
|
||||
// Assets
|
||||
|
Loading…
x
Reference in New Issue
Block a user