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.
Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024Note: Customizing your CSS requires some familiarity with CSS and HTML. Before you cust...
By JasonH Aug 12, 2024