Skip to main content
Version: 3.x

Environment variables

caution

Due to the way token based authentication is implemented in Magento2 Web API, using a URL containing basic authentication credentials (such as http://user:password@magento2.local) is not possible yet. It would prevent users to login.

Environment VariableDescription
FRONT_COMMERCE_MAGENTO2_ENDPOINTRequired The URL of the Magento instance (ex: http://magento2.local)
FRONT_COMMERCE_MAGENTO2_CONSUMER_KEYRequired Integration token configured in Magento's System > Extensions > Integrations admin page
FRONT_COMMERCE_MAGENTO2_CONSUMER_SECRETRequired Integration token configured in Magento's System > Extensions > Integrations admin page
FRONT_COMMERCE_MAGENTO2_ACCESS_TOKENRequired Integration token configured in Magento's System > Extensions > Integrations admin page
FRONT_COMMERCE_MAGENTO2_ACCESS_TOKEN_SECRETRequired Integration token configured in Magento's System > Extensions > Integrations admin page
FRONT_COMMERCE_MAGENTO2_ADMIN_TOKENAdmin role token to detect admin users in Front-Commerce configured in « Stores > Configurations > General > General > Front-Commerce > Magento Admin Token »
FRONT_COMMERCE_MAGENTO2_ADMIN_PATHThe path of the Magento administration interface (default: admin)
FRONT_COMMERCE_MAGENTO2_ADMIN_TIMEOUTThe timeout in milliseconds for Magento requests that require admin privileges (default: 10000)
FRONT_COMMERCE_MAGENTO2_ADMIN_REFERALSThe urls of Magento's backoffice to use as referrals (default: [FRONT_COMMERCE_MAGENTO2_ENDPOINT])
FRONT_COMMERCE_MAGENTO2_TIMEOUTThe timeout in milliseconds for Magento requests (default: 60000)
FRONT_COMMERCE_OPTIMIZED_ADD_MULTIPLE_CART_ITEMSSet to true to use an alternative implementation of the addMultipleItemsToCart mutation that is more performant when adding a high number of products to the cart
FRONT_COMMERCE_MAGENTO2_SEARCH_TAX_RATETax rate to apply on indexed prices to compute prices including taxes on price facet (default: 1)
MAGENTO2_SCHEMA_PATHURL to your Magento2 instance's GraphQL endpoint or schema file. Used to regenerate the GraphQL schema types