Remove 'spree' prefix from isomorphicConfig and add lastUpdatedProductsPrerenderCount

This commit is contained in:
tniezg
2021-08-19 12:24:07 +02:00
parent 7d5a63bbf4
commit ed49ac8833
8 changed files with 23 additions and 18 deletions

View File

@@ -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 {