For discussing the development and usage of Checkout UI extensions, post-purchase extensions, web pixels, Customer Accounts UI extensions, and POS UI extensions
I am building an app that has a Block theme extension, and backend part.
I am using Remix app template.
When I run app with "shopify app dev" it starts my app with a Cloudflare proxy like pathology-repository-float-dts.trycloudflare.com (just an example)
My Block needs to make ajax requests to my backend remix server.
But how can I know the URL if it is dynamically generated each time when I run "shopify app dev" ?
Solved! Go to the solution
This is an accepted solution.
Hi @Moonloon
Welcome to Shopify Community.
You need using app Proxy to help you generate a fixed url address calling from your block. Please have a check.
Hope this helps.
Hey @Moonloon,
Welcome to the community mate!
In that case use an ngrok tunnel url that will be static. Make sure to turn off the updates URL on dev option in your toml. Once you are ready for prod, just switch the urls and you're good to go.
Ngrok has a free tier that can be used by just signing up, it has limited egress of 1gb per month.
♥ If you found my solution helpful, please consider giving it a Like and marking it as the ✔ Accepted Solution
Try our WhatsApp Chat Button Widget with multipe agents.Supachat: WhatsApp Chat Button
A Product of Maverick Studio