Shopify / product-reviews-sample-app

A sample Shopify application that creates and stores product reviews for a store, written in Node.js
MIT License
351 stars 158 forks source link

[FEATURE] dynamically set embeddedAppHost for different environments #80

Open algoad opened 10 months ago

algoad commented 10 months ago

What is the problem you are facing?

In docs/checkout-extension-post-purchase.md it says update embeddedAppHost variables. I’m using the same set up but the embeddedAppHost url is different for local, staging and production. How can we make it dynamic or use env vars in the checkout extension for this purpose?

Describe the solution you'd like to see

I would like to understand how we can use either .env or some other method such that this value is different for local staging and production. The main reason being I am deploying using github actions.

Anything else?

No response