Skip to main content

ServerConfig

Overview

The ServerConfig interface extends the PublicConfig interface and represents the full set of configuration available in the High Velocity front-end app, including sensitive non-public values.

Configuration values are grouped by vendor or functionality. A configuration group can be retrieved server-side from Config() functions by its top level key name, for example, algolia.

Attributes

algolia (optional)

type: object


The Algolia configuration object.

Only required if the implementation uses Algolia search vendor package.

algolia.indexName

type: string


The name of the Algolia index.

algolia.appID

type: string


The application ID for Algolia.

algolia.apiKey

type: string


The API key for Algolia.

isMerchantAssistantEnabled

type: boolean


Flag indicating whether the Merchant Assistant feature is enabled.

commerceTools (optional)

type: object


The CommerceTools configuration object.

Only required if the implementation uses CommerceTools vendor package.

commerceTools.currencyCode

type: string


The currency code for CommerceTools.

commerceTools.projectKey

type: string


The project key for CommerceTools.

commerceTools.clientID

type: string


The client ID for CommerceTools.

commerceTools.clientSecret

type: string


The client secret for CommerceTools.

commerceTools.scope

type: string


The scope for CommerceTools.

commerceTools.apiUrl

type: string


The API URL for CommerceTools.

commerceTools.authUrl

type: string


The authentication URL for CommerceTools.

shopify (optional)

type: object


The Shopify configuration object.

Only required if the implementation uses Shopify commerce vendor package.

shopify.storefrontAccessToken

type: string


The storefront access token for Shopify.

shopify.storeDomain

type: string


The store domain for Shopify.

shopify.mainMenuHandle

type: string


The main menu handle for Shopify.

bigcommerce (optional)

type: object


The BigCommerce configuration object.

Only required if the implementation uses BigCommerce vendor package.

bigcommerce.storeHash

type: string


The store hash for BigCommerce.

bigcommerce.accessToken

type: string


The access token for BigCommerce.

bigcommerce.unsafeApiToken (optional)

type: string


The pre-created API token for BigCommerce.

bigcommerce.currencyCode

type: string


The currency code for BigCommerce.

bigcommerce.channelDomain

type: string


The channel domain for BigCommerce.

stripeConfig (optional)

type: object


The Stripe configuration object.

Only required if the implementation uses Stripe commerce vendor package.

stripeConfig.webhookSecret

type: string


The webhook secret for Stripe.

stripeConfig.publishableKey

type: string


The publishable key for Stripe.

stripeConfig.secretKey

type: string


The secret key for Stripe.

stripeConfig.supportedCountries

type: string[]


An array of supported countries for Stripe.

amplience (optional)

type: object


The Amplience configuration object.

Only required if the implementation uses Amplience CMS vendor package.

amplience.hubName

type: string


The hub name for Amplience.

amplience.mediaCdn

type: string


The media CDN for Amplience.

amplience.schemaBaseUrl

type: string


The schema base URL for Amplience.

amplience.vse

type: string


The VSE address for Amplience.

amplience.useVse

type: boolean


Flag indicating whether to use VSE for Amplience.

googlePay (optional)

type: object


The Google Pay configuration object.

Only required if the implementation uses Google Pay vendor package.

googlePay.merchantId

type: string


The merchant ID for Google Pay.

googlePay.merchantName

type: string


The merchant name for Google Pay.

googlePay.gateway

type: string


The gateway for Google Pay.

googlePay.gatewayMerchantId

type: string


The gateway merchant ID for Google Pay.

googlePay.allowedCardNetworks (optional)

type: string[]


An array of allowed card networks for Google Pay.

googlePay.allowedAuthMethods (optional)

type: string[]


An array of allowed authentication methods for Google Pay.

googlePay.environment

type: string


The environment for Google Pay.

contentful (optional)

type: object


The Contentful configuration object.

Only required if the implementation uses Contentful CMS vendor package.

contentful.env

type: string


The environment identifier for Contentful.

contentful.spaceId

type: string


The space ID for Contentful.

contentful.host

type: string


The host URL for accessing Contentful APIs.

contentful.hostPreview

type: string


The preview host URL for accessing Contentful APIs.

contentful.accessToken

type: string


The CDA access token for Contentful.

contentful.accessTokenPreview

type: string


The CPA access token for Contentful.

sanity (optional)

type: object


The Sanity configuration object.

Only required if the implementation uses Sanity CMS vendor package.

sanity.projectId

type: string


The project ID for Sanity.

sanity.dataset

type: string


The dataset name for Sanity.

sanity.useCdn

type: boolean


Flag indicating whether to use CDN for Sanity.

sanity.apiVersion

type: string


The API version for Sanity.

sanity.token

type: string


The authentication token for Sanity.

sanity.mediaHost

type: string


The media host URL for Sanity.

sanity.perspective

type: string


The perspective for Sanity.

hygraph (optional)

type: object


The Hygraph configuration object.

Only required if the implementation uses Hygraph CMS vendor package.

hygraph.env

type: string


The environment for Hygraph.

hygraph.envForLivePreview

type: string


The environment for live preview in Hygraph.

hygraph.pat

type: string


The permanent auth token for Hygraph.

hygraph.patForLivePreview

type: string


The permanent auth token for live preview in Hygraph.

hygraph.stage

type: string


The stage for Hygraph.

hygraph.stageForLivePreview

type: string


The stage for live preview in Hygraph.

disableSitemap (optional)

type: boolean


Flag indicating whether the sitemap is disabled.

contentstack (optional)

type: object


The Contentstack configuration object.

Only required if the implementation uses Contentstack CMS vendor package.

contentstack.apiKey

type: string


The API key for Contentstack.

contentstack.branch

type: string


The branch for Contentstack.

contentstack.deliveryToken

type: string


The delivery token for Contentstack.

contentstack.environment

type: string


The environment for Contentstack.

contentstack.livePreviewToken

type: string


The live preview token for Contentstack.