This is the early access documentation preview for Custom Views. This documentation might not be in sync with our official documentation.

@/constants

Shared constants for Custom Applications.

Installation

yarn add @commercetools-frontend/constants
# or
npm --save install @commercetools-frontend/constants

Useful variables

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