Check out this solution:
https://giftcardreminders.com/blog/how-we-simplified-shopify-remix-development-with-cloudflare-tunnels
Setting Up Cloudflare Tunnels
Here’s the process we followed:
-
Create a tunnel in Cloudflare Zero Trust
We chose the option of using Cloudflared because we both work on MacOS.
-
Configure the tunnel
We created a public hostname unique to each developer and configured the local address to tunnel traffic to:
Now, with the agent running on our computers, traffic automatically forwards to our local development server with a static URL — and it’s completely free.
Shopify App Configuration
On the Shopify side, we only needed to make a few adjustments to our shopify.app.toml file to reflect the static tunnel URLs. Here’s what it looks like now:
client_id = “”
name = “GiftCardReminders-Conor”
handle = “giftcardreminders-conor”
application_url = “https://conordev.giftcard.wtf”
embedded = true
[build]
automatically_update_urls_on_dev = true
dev_store_url = “conor-dev-shop.myshopify.com”
include_config_on_deploy = true
[access_scopes]
scopes = “read_customers,read_gift_cards,read_orders,read_products,read_publications,read_themes,write_customers,write_files,write_gift_cards,write_products”
[auth]
redirect_urls = [
“https://conordev.giftcard.wtf/auth/callback”,
“https://conordev.giftcard.wtf/auth/shopify/callback”,
“https://conordev.giftcard.wtf/api/auth/callback”
]
[webhooks]
api_version = “2024-04”
[[webhooks.subscriptions]]
topics = [ “app/uninstalled”, “orders/paid” ]
uri = “/webhooks”
[pos]
embedded = false
Once we updated the shopify.app.toml, we did a quick shopify app deploy and started our app using the following command:
shopify app dev --tunnel-url=“https://conordev.giftcard.wtf:3000”
A seamless developer workflow
That’s it! Now, whenever Simon or I want to work on GiftCardReminders, all we have to do is run shopify app dev — no more fiddling with URLs or reconfiguring webhooks. Everything just works, and our development flow is smoother than ever.
If you’re facing similar headaches with Shopify app development, we hope this solution saves you some time and sanity.