mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
Styling updates
This commit is contained in:
@@ -17,11 +17,13 @@ export async function getStaticProps({
|
||||
const config = { locale, locales }
|
||||
const { pages } = await commerce.getAllPages({ config, preview })
|
||||
const { categories } = await commerce.getSiteInfo({ config, preview })
|
||||
|
||||
const { product } = await commerce.getProduct({
|
||||
variables: { slug: params!.slug },
|
||||
config,
|
||||
preview,
|
||||
})
|
||||
console.log(product?.variants[0])
|
||||
|
||||
const { products: relatedProducts } = await commerce.getAllProducts({
|
||||
variables: { first: 4 },
|
||||
|
Reference in New Issue
Block a user