Questions and discussions about using the Shopify CLI and Shopify-built libraries.
Pretty simple question that I can't seem to find the solution for anywhere.
During development, every restart of ngrok free version requires an update of the app URL and redirect url's.
I noticed the Shopify CLI can do this automatically, but I can't find the documentation for it?
I'm rolling a custom framework and want to embed the functionality in my server script like so:
if (MODE === "development") {
HOST = await ngrok.connect(port);
console.log("ngrok tunnel live at ", HOST);
open(HOST);
//Update the app URL and redirect urls
await setAppUrlAndWhitelist(HOST)
}
+1 for this, it's a pain to set the app URL every time ngork restarts. Can anyone please help?
this is very important question. why shopify didnt answer it still?? what a stupid app!
were you able to solve this thing?
Hey @webx47 - we don 't have specific documentation for how the CLI integrates ngrok at the moment. That said, the source code for the implementation is publicly available here.
We can't offer support for implementations outside of our official libraries at the moment, but this is definitely something I'll note on my end and bring to my colleagues. I can see the need for a wider support experience, especially when you're in the early stages of developing for Shopify. I can't guarantee anything - but I would like to use this thread as an example on my end that I can show to my colleagues as an example of where we can help further.
Hope this helps!
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog