mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
rewrite search rewrites to multiple pages
This commit is contained in:
16
pages/search/designers/[name]/[category].tsx
Normal file
16
pages/search/designers/[name]/[category].tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import { getSearchStaticProps } from '@lib/search-props'
|
||||
import type { GetStaticPathsResult, GetStaticPropsContext } from 'next'
|
||||
import Search from '@components/search'
|
||||
|
||||
export async function getStaticProps(context: GetStaticPropsContext) {
|
||||
return getSearchStaticProps(context)
|
||||
}
|
||||
|
||||
export function getStaticPaths(): GetStaticPathsResult {
|
||||
return {
|
||||
paths: [],
|
||||
fallback: 'blocking',
|
||||
}
|
||||
}
|
||||
|
||||
export default Search
|
Reference in New Issue
Block a user