Shopify configuration
Audience: CMS editors and developers.
This reference defines the backend module switches and Shopify connection settings.
Module switches
These backend variables control Shopify support:
MODULES_SHOPIFY=1-> Shopify module enabledMODULES_SHOPIFY=0(or unset) -> Shopify module disabled
What this affects:
- Shopify GraphQL module registration
- Shopify webhook/task processing paths
/v1/healthcheck/shopifyavailability (503with “Shopify module is disabled.” when off)
Related toggle:
MODULES_LOYALTY=0disables the separate loyalty module while leaving Shopify support enabled
Module registration takes effect when the backend starts.
Required environment variables
The backend runtime uses these environment variables:
SHOPIFY_STOREFRONT_GRAPHQL_URISHOPIFY_ADMIN_GRAPHQL_URISHOPIFY_PRIVATE_TOKEN(required for Admin API; also preferred for Storefront API)SHOPIFY_ACCESS_TOKEN(optional fallback for Storefront API if no private token is set)SHOPIFY_WEBHOOK_SIGNING_SECRET(required when receiving Shopify webhooks)SHOPIFY_API_KEYSHOPIFY_API_SECRET
Value sources
Shopify Admin supplies these values:
SHOPIFY_STOREFRONT_GRAPHQL_URI:https://<shop>.myshopify.com/api/<version>/graphql.jsonSHOPIFY_ADMIN_GRAPHQL_URI:https://<shop>.myshopify.com/admin/api/<version>/graphql.jsonSHOPIFY_PRIVATE_TOKEN: Admin API access token from your Shopify appSHOPIFY_ACCESS_TOKEN: Storefront access tokenSHOPIFY_WEBHOOK_SIGNING_SECRET: Shared secret used to sign webhook requests
Related guides
Last updated on