mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
Continue Migration, almost done
This commit is contained in:
@@ -22,6 +22,7 @@ import MarkerCardModal from '@components/common/Room/MarkerCardModal/MarkerCardM
|
||||
import { useDisclosure } from '@chakra-ui/react'
|
||||
|
||||
import decadesManifest from '../../../static_data/decadesManifest.json'
|
||||
import productDetailsMetafields from '../../../static_data/productDetailsMetafields.json'
|
||||
import {
|
||||
MarkerData,
|
||||
MarkerJson,
|
||||
@@ -123,7 +124,14 @@ export async function getStaticProps({
|
||||
continue
|
||||
|
||||
const productPromise = commerce.getProduct({
|
||||
variables: { slug: productMarker.markerSource },
|
||||
variables: {
|
||||
slug: productMarker.markerSource,
|
||||
withMetafields: [
|
||||
{ namespace: 'custom', key: 'nazionalit_' },
|
||||
{ namespace: 'custom', key: 'descrizione_tecnica' },
|
||||
{ namespace: 'custom', key: 'descrizione_storica' },
|
||||
],
|
||||
},
|
||||
config,
|
||||
preview,
|
||||
})
|
||||
@@ -132,8 +140,6 @@ export async function getStaticProps({
|
||||
}
|
||||
}
|
||||
|
||||
console.log(products)
|
||||
|
||||
if (!products) {
|
||||
throw new Error(`Products associated with markers not found`)
|
||||
}
|
||||
|
Reference in New Issue
Block a user