Hi there, I’m quite new to the shopify app development, so would appreciate some help about the best practices.
What is the best way to fetch data stored in the DB from the storefront? I am using a theme extension in the storefront. I saw that you should use shopify proxies and create an api endpoint for this, but I do not quite get how to do that.
I found that the proxy should be set up in the shopify.app.toml file. However, I’m not quite sure what should be the url of the proxy? should it be my app url? Then I could create a route that would be used as the proxy. But when running the remix shopify app, the application_url always gets overwritten to a new one, so probably this should be some other url?