1. dnsmasq for local dev

      echo 'address=/.test/127.0.0.1' >> $(brew --prefix)/etc/dnsmasq.conf
      sudo brew services restart dnsmasq
      bash -c 'echo "nameserver 127.0.0.1" > /etc/resolver/test'
    

    Following the last tip, i mentioned 3 main ways to point fake domains towards 127.0.0.1:


  2. https proxy in 1 step

      caddy reverse-proxy --from anysubdomain.lvh.me --to :3000 --internal-certs
    

    Note: this article was updated to work with the last version 2.6.4 at the time of this fix.