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

How do I add more than one proxy? #1921

Closed
kwingat opened this issue Apr 1, 2017 · 1 comment
Closed

How do I add more than one proxy? #1921

kwingat opened this issue Apr 1, 2017 · 1 comment

Comments

@kwingat
Copy link

kwingat commented Apr 1, 2017

How do I add more than one proxy. In the documentation, only one way is shown:
"proxy": "http://localhost:4000"

But I need add a few patterns for my proxy like:
"proxy": { "/api/*": "http://localhost:4000", "/forms/*": "http://localhost:4000", "/content/*": "http://localhost:4000" }

I would normally write this like so in my webpack.config file but this isn't working:
devServer: { proxy: { "/api/*": "http://localhost:4000", "/forms/*": "http://localhost:4000", "/content/*": "http://localhost:4000" } }

@Timer
Copy link
Contributor

Timer commented Apr 1, 2017

This is currently a WIP and you can comment on the proposal here: #1790.

The original issue is #1780 (of which this issue is a duplicate).

You can see if you can help expedite #1790 by commenting there. 😄

@Timer Timer closed this as completed Apr 1, 2017
@lock lock bot locked and limited conversation to collaborators Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants