ngrok Update App url and redirect url via API

New Member
4 0 0

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);
    //Update the app URL and redirect urls
    await setAppUrlAndWhitelist(HOST)


Replies 0 (0)