mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 07:26:59 +00:00
Changing
This commit is contained in:
parent
6e2d9a37ce
commit
5b2155a556
@ -7,7 +7,7 @@ import { useRouter } from 'next/router'
|
|||||||
import { Layout } from '@components/common'
|
import { Layout } from '@components/common'
|
||||||
import { ProductCard } from '@components/product'
|
import { ProductCard } from '@components/product'
|
||||||
import type { Product } from '@commerce/types/product'
|
import type { Product } from '@commerce/types/product'
|
||||||
import { Container, Grid, Skeleton } from '@components/ui'
|
import { Container, Skeleton } from '@components/ui'
|
||||||
|
|
||||||
import useSearch from '@framework/product/use-search'
|
import useSearch from '@framework/product/use-search'
|
||||||
import commerce from '@lib/api/commerce'
|
import commerce from '@lib/api/commerce'
|
||||||
@ -24,8 +24,8 @@ import {
|
|||||||
import getSlug from '@lib/get-slug'
|
import getSlug from '@lib/get-slug'
|
||||||
|
|
||||||
const SORT = Object.entries({
|
const SORT = Object.entries({
|
||||||
'latest-desc': 'Latest arrivals',
|
|
||||||
'trending-desc': 'Trending',
|
'trending-desc': 'Trending',
|
||||||
|
'latest-desc': 'Latest arrivals',
|
||||||
'price-asc': 'Price: Low to high',
|
'price-asc': 'Price: Low to high',
|
||||||
'price-desc': 'Price: High to low',
|
'price-desc': 'Price: High to low',
|
||||||
})
|
})
|
||||||
@ -44,6 +44,7 @@ export async function getStaticProps({
|
|||||||
categories,
|
categories,
|
||||||
brands,
|
brands,
|
||||||
},
|
},
|
||||||
|
revalidate: 200,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user