Set these environment variables in production before connecting Shopify stores:
SHOPIFY_API_KEY="your Shopify app client ID"
SHOPIFY_API_SECRET="your Shopify app client secret"
SHOPIFY_SCOPES="write_products"
APP_BASE_URL="https://snapsyncai.co.uk"SHOPIFY_CLIENT_ID and SHOPIFY_CLIENT_SECRET are also accepted for older deployments, but prefer the SHOPIFY_API_* names for new setup.
In the Shopify app dashboard, set the app URL to https://snapsyncai.co.uk and add this allowed redirection URL:
https://snapsyncai.co.uk/api/shopify/oauth/callback