-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to start dev server with domain configured by PAC (proxy auto-config) #3789
Comments
To work around this, add |
Is there anything we can do to improve this? |
@Timer Ah, awesome. @gaearon I think cra would need to be able to resolve domain names via PAC. If this is something that you would like to have supported by cra I could look into it. I think the resolving part is easy with module mentioned above. Just need to find out how to access the system setting on other platforms. On Windows it's possible via registry and Windows API. Not sure if cra should ship native Node addons tho. Mentioning the workaround in the docs would be a first good step I think. |
Our docs mention This message would've prevented this issue: #3730, so we should probably merge it. 😄 |
@Timer no. |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 7 days if no further activity occurs. |
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.This seems to don't play well when using the
HOST
environment variable in cra.Settings
DANGEROUSLY_DISABLE_HOST_CHECK
totrue
has no effect.Environment
node -v
: v8.9.0npm -v
: 4.0.5yarn --version
(if you use Yarn): 1.3.2npm ls react-scripts
(if you haven’t ejected): 1.0.17Then, specify:
Steps to Reproduce
.local
domain configured with the cra dev server as target.HOST
to your.local
domain.The text was updated successfully, but these errors were encountered: