Custom live link using paid ngrok

I registered with ngrok to stop my live links from timing out. I have also paid for the “basic” plan, which allows you to specify a custom subdomain.

How can I tell Local to point to this custom subdomain instead of generating a random address?

Hey @bohrj

Right now the tunnel provider (ngrok) has a limit of the number of connections or resources loaded in a given time. There isn’t any way for Local to use the custom domain at this point. So, if you have a page with a lot of links to images, stylesheets, or scripts, you can go through the limit quickly.

There isn’t a way to swap this out within Local at this time. Improving Live Links is something that we are wanting to do and are still working through the best way of going about this.

In the meantime, you have a couple of options:

  • Make use of a plugin to minify and/or lazy load assets so that the total number of assets is reduced for the various pages. Autoptimize should help with this or a more advanced caching plugin like WP Rocket would also help.

  • Deploy a version of the site to a Demo site so that there aren’t any limits on the number of assets that are downloaded

Hope that helps to clarify things a bit, and I’m sorry for the confusion!