Przejdź do głównej zawartości

Function: createCustomerClient()

createCustomerClient(config): StorefrontClient

Create a client targeting the customer-account surface.

Identical to createStorefrontClient, except graphqlPath defaults to CUSTOMER_GRAPHQL_PATH. Pass an explicit graphqlPath to override.

The customer-account surface does not resolve persisted-document ids (it has no trusted-document support and is always served fresh), so this client always sends the full query — trustedDocuments is forced false regardless of the passed config.

Parameters

config

StorefrontClientConfig

Returns

StorefrontClient