mirror of
https://github.com/vercel/commerce.git
synced 2025-07-25 19:21:23 +00:00
Remove 'spree' prefix from isomorphicConfig and add lastUpdatedProductsPrerenderCount
This commit is contained in:
@@ -54,7 +54,7 @@ const normalizeVariant = (
|
||||
|
||||
const variantImage = getMediaGallery(
|
||||
spreeVariantImageRecords,
|
||||
createGetAbsoluteImageUrl(requireConfigValue('spreeImageHost') as string)
|
||||
createGetAbsoluteImageUrl(requireConfigValue('imageHost') as string)
|
||||
)[0]
|
||||
|
||||
if (variantImage) {
|
||||
@@ -68,7 +68,7 @@ const normalizeVariant = (
|
||||
|
||||
const productImage = getMediaGallery(
|
||||
spreeProductImageRecords,
|
||||
createGetAbsoluteImageUrl(requireConfigValue('spreeImageHost') as string)
|
||||
createGetAbsoluteImageUrl(requireConfigValue('imageHost') as string)
|
||||
)[0]
|
||||
|
||||
lineItemImage = productImage
|
||||
|
@@ -28,7 +28,7 @@ const normalizeProduct = (
|
||||
|
||||
const images = getMediaGallery(
|
||||
spreeImageRecords,
|
||||
createGetAbsoluteImageUrl(requireConfigValue('spreeImageHost') as string)
|
||||
createGetAbsoluteImageUrl(requireConfigValue('imageHost') as string)
|
||||
)
|
||||
|
||||
const price: ProductPrice = {
|
||||
|
@@ -1,8 +1,8 @@
|
||||
const validateCookieExpire = (expire: unknown) => {
|
||||
const validateCookieExpire = (expire: unknown): number => {
|
||||
let expireInteger: number
|
||||
|
||||
if (typeof expire === 'string') {
|
||||
expireInteger = parseFloat(expire || '')
|
||||
expireInteger = parseFloat(expire)
|
||||
} else if (typeof expire === 'number') {
|
||||
expireInteger = expire
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user