Hi everyone,
I’m building a Shopify app that applies bundle discounts and logic.
Current behavior:
-
App backend (Admin panel) works fine
-
Rules are saved correctly
-
API routes are responding in admin
Problem:
-
On the storefront, app logic is not working
-
API calls return 404 or don’t trigger
-
Same logic works from admin but not from theme/frontend
Details:
-
Using app proxy / API routes
-
Dev store
-
App URL changes on every
shopify app devrun -
Frontend fetch calls fail but admin fetch works
Question:
-
What is the correct way to expose app APIs to storefront?
-
Is App Proxy mandatory for frontend access?
-
How to handle changing app URLs in development?