mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 07:26:59 +00:00
17 lines
421 B
TypeScript
17 lines
421 B
TypeScript
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
|