{"action":"closed","issue":{"url":"https://api.github.com/repos/facebook/create-react-app/issues/3789","repository_url":"https://api.github.com/repos/facebook/create-react-app","labels_url":"https://api.github.com/repos/facebook/create-react-app/issues/3789/labels{/name}","comments_url":"https://api.github.com/repos/facebook/create-react-app/issues/3789/comments","events_url":"https://api.github.com/repos/facebook/create-react-app/issues/3789/events","html_url":"https://github.com/facebook/create-react-app/issues/3789","id":288420368,"node_id":"MDU6SXNzdWUyODg0MjAzNjg=","number":3789,"title":"Unable to start dev server with domain configured by PAC (proxy auto-config)","user":{"login":"levrik","id":9491603,"node_id":"MDQ6VXNlcjk0OTE2MDM=","avatar_url":"https://avatars3.githubusercontent.com/u/9491603?v=4","gravatar_id":"","url":"https://api.github.com/users/levrik","html_url":"https://github.com/levrik","followers_url":"https://api.github.com/users/levrik/followers","following_url":"https://api.github.com/users/levrik/following{/other_user}","gists_url":"https://api.github.com/users/levrik/gists{/gist_id}","starred_url":"https://api.github.com/users/levrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/levrik/subscriptions","organizations_url":"https://api.github.com/users/levrik/orgs","repos_url":"https://api.github.com/users/levrik/repos","events_url":"https://api.github.com/users/levrik/events{/privacy}","received_events_url":"https://api.github.com/users/levrik/received_events","type":"User","site_admin":false},"labels":[{"id":554733913,"node_id":"MDU6TGFiZWw1NTQ3MzM5MTM=","url":"https://api.github.com/repos/facebook/create-react-app/labels/issue:%20question","name":"issue: question","color":"006b75","default":false},{"id":1113224076,"node_id":"MDU6TGFiZWwxMTEzMjI0MDc2","url":"https://api.github.com/repos/facebook/create-react-app/labels/stale","name":"stale","color":"f4d37f","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-01-14T16:22:42Z","updated_at":"2018-11-02T22:45:14Z","closed_at":"2018-11-02T22:45:14Z","author_association":"CONTRIBUTOR","body":"I'm using a PAC (proxy auto-config) file to redirect all domains ending with `.local` to a local development proxy without messing around with my hosts file.\r\nThis seems to don't play well when using the `HOST` environment variable in cra.\r\n\r\n![image](https://user-images.githubusercontent.com/9491603/34918100-32ab9d1c-f94e-11e7-9d76-fe929aa0100b.png)\r\n\r\nSettings `DANGEROUSLY_DISABLE_HOST_CHECK` to `true` has no effect.\r\n\r\n### Environment\r\n\r\n1. `node -v`: v8.9.0\r\n2. `npm -v`: 4.0.5\r\n3. `yarn --version` (if you use Yarn): 1.3.2\r\n4. `npm ls react-scripts` (if you haven’t ejected): 1.0.17\r\n\r\nThen, specify:\r\n\r\n1. Operating system: Windows 10\r\n\r\n### Steps to Reproduce\r\n\r\n1. Configure a URL to an PAC file with the following content:\r\n```javascript\r\nfunction FindProxyForURL (url, host) {\r\n  if (dnsDomainIs(host, '.local')) {\r\n    return 'PROXY 127.0.0.1:2000';\r\n  }\r\n\r\n  return 'DIRECT';\r\n}\r\n```\r\n2. Setup an reverse proxy (nginx, whatever) to listen on port 2000 with a `.local` domain configured with the cra dev server as target.\r\n3. Configure `HOST` to your `.local` domain.\r\n4. Try to start cra. It gets stuck for some time before showing the above error."}}
{"actor":{"display_login":"Timer"}}