What happens if 2 Apps use the same App Proxy pathname?

https://shopify.dev/tutorials/display-dynamic-store-data-with-app-proxies

I’m confused when setting up the App Proxy why I can choose whatever pathname I want. Isn’t there a risk of 2 apps wanting to use the same pathname to create an App Proxy.

Say for example 2 apps need to use the app proxy function. Say App “A” and App “B” both register the pathname “/app/assets/”.

Say for example Adidas installs both apps A and B and one app makes a call to “https://adidas.myshopify.com/app/asset/…” does the call get redirected to App A’s proxy or B?

1 Like

The second app wouldn’t be able to register that path given it’s already claimed by the first one. A would win in your scenario.

Thanks for your reply.

Would the problem manifest itself as the merchant not being able to install “App B”?

For example when they attempt to install the app the merchant gets an error messaging saying “App B” needs to use a proxy path already in use by “App A”?

Why doesn’t Shopify just use pathnames equal to the App’s name to prevent name clashes?

1 Like

I would also like clarification on what happens in this instance