For developing my app, I have two apps. One main app is listed and one dev app is unsubmitted/unlisted. They both share the same code base. I’ve got environment variables for development and production where the development variables have the API data for my unlisted dev app and the production environment has the API data for my main listed app.
When developing an app extension, I first created an app extension with the Shopify CLI for my dev app. When finished, I used the Shopify CLI to create an app extension for my main app. I then copy-pasted the contents from my dev app extension to the app extension of my main app. I then published the app extension.
Now here comes the issue.
The app extension of the main app can be added to the storefront using the theme editor. But the request that is fired from the app extension seems to go to the proxy of the dev app. The dev app, when running, is available on a ngrok tunnel. The error I get on the request is that it can’t find the ngrok tunnel. But the proxy set up for my main app has no such URL!
I know it’s using the proxy URL from my dev app, because when I change the proxy URL on my dev app to the URL where my main app is hosted, it works.
I’m also quite certain I’m adding the app block for my main app because the app block carries the name and logo of my main app (my dev app doesn’t have a logo uploaded).
Somewhere, something got mixed up and I have no idea how to fix it.
