Constants

Shared constants for customizations.

Installation

yarn add @commercetools-frontend/constants

Useful variables

  • GRAPHQL_TARGETS: Contains the supported GraphQL targets to use in the Apollo Client queries and mutations. For more information, see Data fetching.
  • MC_API_PROXY_TARGETS: Contains the supported Proxy targets to use in the REST API requests. For more information, see Data fetching.
  • DOMAINS: Contains the supported notification domains. For more information, see Notifications.
  • NOTIFICATION_KINDS_SIDE: Contains the supported kinds of side notification. For more information, see Notifications.
  • NOTIFICATION_KINDS_PAGE: Contains the supported kinds of page notification. For more information, see Notifications.