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

Configuring public path for hot middleware reload #2914

Closed
beku8 opened this issue Sep 6, 2017 · 2 comments
Closed

Configuring public path for hot middleware reload #2914

beku8 opened this issue Sep 6, 2017 · 2 comments

Comments

@beku8
Copy link

beku8 commented Sep 6, 2017

We are trying to use nextjs for certain parts of our app. So I have a proxy app running on http://localhost:8080, which will dispatch certain requests to nextjs app running on http://localhost:3000. For production environment, hopefully, it will work fine with assetPrefix: 'http://{production_url}', but for development the following requests are being made for hot module replacement:

  • /_next/webpack-hmr
    - /_next/on-demand-entries-ping?page=/

which are apparently configured as a relative path, so when I access thru my proxy, it will try to access at http://localhost:8080/_next/on-demand-entries-ping?page=/ from the browser.

Is there any possible way to override the path to explicitly define to fetch from http://localhost:3000?

@sergiodxa
Copy link
Contributor

I tried to replicate it and my /_next/on-demand-entries-ping?page=/ and /_next/webpack-hmr both goes to the correct port. Could you provide a repository to replicate it?

@sergiodxa sergiodxa added please add a complete reproduction The issue lacks information for further investigation Status: Awaiting Response labels Sep 9, 2017
@timneutkens timneutkens removed please add a complete reproduction The issue lacks information for further investigation Status: Awaiting Response labels Sep 9, 2017
@timneutkens
Copy link
Member

Will be fixed when #2901 lands 👍

@lock lock bot locked as resolved and limited conversation to collaborators May 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants