Uh oh!
There was an error while loading. Please reload this page.
proxy-config documentation - #1896
Conversation
googlebot
commented
Aug 30, 2016
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
leon
commented
Aug 30, 2016
I signed it! |
googlebot
commented
Aug 30, 2016
CLAs look good, thanks! |
mmrath
commented
Aug 30, 2016
I think it is worth mentioning that proxy confguration would support all the configuration mentioned at https://webpack.github.io/docs/webpack-dev-server.html#proxy except support for functions in configuration. Good work @leon |
leon
commented
Aug 31, 2016
@mmrath I've added the link :) |
jasonswett
commented
Sep 12, 2016
The config file in these instructions actually didn't work for me. What did work for me was something slightly different: {
"/api": {
"target": "http://localhost:3000",
"secure": "false"
}
}( |
leon
commented
Sep 12, 2016
@jasonswett We can change it to |
gonzofish
commented
Sep 15, 2016
Thanks for getting this doc out there! Helped me out big time. |
filipesilva
commented
Sep 20, 2016
Thanks for documenting this feature, we'll merge this soon! |
| We do this by passing a file to `--proxy-config` | ||
| Say we have a server running on `http://localhost:3000/api` and we want all calls th `http://localhost:4200/api` to go to that server. | ||
gus4no
commented
Sep 27, 2016
Any idea on how to have different targets per environment? |
gonzofish
commented
Nov 22, 2016
@gus4no you could have different NPM tasks which call not an automated solution, but something... |
maximelafarie
commented
Mar 22, 2017
Always nothing about --proxy option in official documentation ? |
filipesilva
commented
Mar 26, 2017
@maximelafarie it's in the wiki now: https://github.com/angular/angular-cli/wiki/stories-proxy |
stockmind
commented
Dec 31, 2017
It could seems silly but a note/remind like "After every edit to proxy.config.json a restart of npm process is needed to apply them" could save some time in late hour working! 😄 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
documentation on how to use
--proxy-config