Ngrok provides a paid service to connect custom domain to a service. This script provides similar functionality which requires to be run everytime ngrok is started/restarted.
It updates your custom domain's CNAME record to the ngrok subdomain assigned to your service.