This is the new documentation of Custom Applications. You can still visit the legacy documentation during the migration from Project-level Custom Applications.

@/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.