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

Proxy support? #1562

smithb1994 opened this Issue Jun 16, 2018 · 4 comments


None yet
5 participants
Copy link

smithb1994 commented Jun 16, 2018

I currently use http-server to serve my SPA app on localhost:8080, but I set a proxy to localhost:3000 where I have my express server running with a REST API.

With http-server the -P flag proxies all requests which can't be resolved locally to a given URL.

For example, my serve command is:
http-server dist -c 1 -a localhost -P http://localhost:3000/

Is there an equivalent proxy flag for parcel serve?


This comment has been minimized.

Copy link

KeineLimonade commented Jun 17, 2018

Currently not. But you can use parcel as middleware in your express application


This comment has been minimized.

Copy link

devongovett commented Jun 18, 2018

There have been plenty of issues about this in the past. @KeineLimonade is correct - you can use the middleware to build your own proxy pretty easily so we won't support it in parcel core.


This comment has been minimized.

Copy link

zaynv commented Jun 19, 2018

But what if you're using Koa? I don't think it would work :(


This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment