Local development requires you to edit your /etc/hosts
file constantly to add custom local domains. Maintaining this file across machines and projects can become taxing. Let's use a service like dnsmasq
to dynamically set any .localhost
domain to point to 127.0.0.1
# Install dnsmasq
brew install dnsmasq
sudo brew services start dnsmasq
# Configure