Amber Shopify Project created using ReactJS+React-Redux with GraphQL API integration. Storefront Shopify API: https://github.com/Shopify/shopify-app-js/tree/main/packages/api-clients/storefront-api-client#readme
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

storefrontClient.js 507B

12345678910111213
  1. const shopify = require('@shopify/shopify-api'); // Adjust import based on your environment
  2. // Load the access token and shop
  3. const storefrontAccessToken = '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'; // Replace with your actual access token
  4. const shop = 'amberdevstore.myshopify.com'; // Replace with your actual shop domain
  5. // Create and export the storefront client
  6. const storefrontClient = new shopify.clients.Storefront({
  7. domain: shop,
  8. storefrontAccessToken,
  9. });
  10. module.exports = storefrontClient;