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.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024