App reviews, troubleshooting, and recommendations
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
In my app's homepage I'm showing an message and link to activate the app embed based on it's activated or not.
Now to check if the app embeds activate status I need to fetch the storefront id and I'm storing it in the apps .env file. Now in my remix apps app/routes/app._index.jsx files loader function I'm trying to fetch the storefront id in the following way:
const storeFrontId = import.meta.env.VITE_SHOPIFY_STOREFRONT_ID;
Now this works fine in dev version but when I build the app and run in the production this created an error. How can I fix this?