App reviews, troubleshooting, and recommendations
Hi,
How can I get a fixed url tunnel for my shopify app (remix) for webhook, since we can't set a fixed port for the app.
Normally i would do it like this : "ngrok http PORT" but the port for the remix app is set randomly at each start
You could update the url and uses static url thru .toml config file.
[build]
automatically_update_urls_on_dev = true
Or
sudo npm run dev -- --tunnel-url https://<tunnel url>:<port>
hi @nelos7
You can manually set the tunnel url using the --tunnel-url flag while running a Shopify app using the CLI.
the command should look like this
shopify app dev --tunnel-url <tunnel-url>:<PORT>
or if you're using the Shopify cli via npm then
npm run dev -- --tunnel-url <tunnel-url>:<PORT>
here the port is the port which is the port forwarding tool is listening to. (the you gave while running ngrok HTTP <PORT>)
How can I get a fixed url tunnel for my shopify app (remix)
Let's say you want to run your shopify app on port 6000 and you plan on connecting to it by visiting https://my-custom-tunnel.io in a browser. You can configure my-custom-tunnel.io to proxy the local port 6000 using nginx, etc. Here's how to set the shopify app's port:
shopify app dev --tunnel-url=https://my-custom-tunnel.io:6000
When the shopify command parses this tunnel-url, it will listen on the specified port.
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025