Complete guide to configuring the TypeScript SDK for different environments and use cases
Environment.Production
β https://prod.api.commercengine.io/api/v1/{storeId}/storefront
Environment.Staging
β https://staging.api.commercengine.io/api/v1/{storeId}/storefront
baseUrl
is provided, the environment
setting is ignored. Ensure your custom URL follows the correct API path structure.tokenStorage
is provided for automatic token management.customer_group_id
: Used for customer-specific pricing, promotions, and subscription ratesconsole.log
.Use Environment Variables
Secure Cookie Configuration
Environment-Specific Settings
.env
files that are excluded from your repository.