Shopify API

When we creating a API, I figured that I need to configure new Shopify like this

const shopify = new Shopify({
  shopName: 'your-shop-name',
  apiKey: 'your-api-key',
  password: 'your-app-password'
});

Is there any way to get the Shopify “your-shop-name” programmatically? So If I installed the app on another one it won’t need to change. Or is there any other way to configure the API on Shopify?

I primarily need to update the product description using Admin REST API.

hi,

you could create .env file to set env variant values.

and use process.env.variant_name to access it.