Rather than editing the webpack config file, the easier way to disable the host check is by adding a .env
file to your root folder and putting this:
DANGEROUSLY_DISABLE_HOST_CHECK=true
As the variable name implies, disabling it is insecure and is only advisable to use only in dev environment.