Skip to content
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

Use CRA's custom Webpack dev client #6

Open
randycoulman opened this issue May 5, 2017 · 0 comments
Open

Use CRA's custom Webpack dev client #6

randycoulman opened this issue May 5, 2017 · 0 comments

Comments

@randycoulman
Copy link

We currently use the standard webpack dev client because the custom client in CRA infers the protocol/host/port of the dev server from window.location. However, since we host our React apps inside a back-end up, window.location will point at our backend server, not the webpack dev server.

There are a few possible solutions to this:

randycoulman added a commit that referenced this issue May 8, 2017
For now, we need to use the stock client because the custom dev client
relies on `window.location` to find the dev server.  However, since we
host our apps inside a back-end app, the dev server is running
somewhere else.

See #6 for some
ideas on how to go back to the custom dev client.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant