This commit is contained in:
Bel Curcio 2021-06-09 09:34:32 -03:00
parent 6e2d9a37ce
commit 5b2155a556

View File

@ -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,
} }
} }