Need help for implementing the .env file variables in extension folder for frontend usage

Need help for implementing the .env file variables in extension folder for frontend usage

aravinthemb
Shopify Partner
10 0 4

Hi All,

 

We have developed a store locator app. In that we are using API to fetch the location details, which are saved in DB. For that, we need to use the .env file to make the code as dynamic as possible, like the app URL, app name,etc. We can't use the .env file directly in the frontend part (Extension/asset/store.js). So please help me to resolve the issue if anyone has some idea. Also clarify for me: is it mandatory for app submission? Thanks in advance.

Replies 0 (0)