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

@@ -93,7 +93,7 @@ export default function getSiteInfoOperation({
SpreeSdkVariables
>('__UNUSED__', {
variables: createVariables(
requireConfigValue('spreeCategoriesTaxonomyId') as string
requireConfigValue('categoriesTaxonomyId') as string
),
})
@@ -106,7 +106,7 @@ export default function getSiteInfoOperation({
SpreeSdkVariables
>('__UNUSED__', {
variables: createVariables(
requireConfigValue('spreeBrandsTaxonomyId') as string
requireConfigValue('brandsTaxonomyId') as string
),
})

View File

@@ -20,7 +20,7 @@ const createApiFetch: (
_getConfig
) => {
const client = makeClient({
host: requireConfigValue('spreeApiHost') as string,
host: requireConfigValue('apiHost') as string,
fetcherType: 'custom',
createFetcher: (fetcherOptions) => {
return createCustomizedFetchFetcher({