What's your biggest current challenge? Have your say in Community Polls along the right column.

How to get the proxy path and subpath of the current app when an extension is linked to 2 apps

How to get the proxy path and subpath of the current app when an extension is linked to 2 apps

mayank12
Visitor
3 0 0

So, I'm developing a shopify app with a theme extension, there are 2 shopify apps linked with the same code base one for deployment, second for testing. In the liquid code of the extension I'm making an api call through the app proxy, currently it is hardcoded to the proxy path and subpath of the first app, but when i run the second app, it doesn't work properly because it's proxy subpath is different than the first. What should I do to dynamically get the proxy path and subpath of the current app, instead of hardcoding it?

Replies 0 (0)