Skip to content

Commit

Permalink
Make package.json#proxy proxy all /api requests (#141)
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Farro <joef@uber.com>
  • Loading branch information
tiffon authored and yurishkuro committed Dec 19, 2017
1 parent 9f6a804 commit b5923ca
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,16 @@
"version": "0.0.1",
"main": "src/index.js",
"license": "MIT",
"proxy": "http://localhost:16686",
"proxy": {
"/api": {
"target": "http://localhost:16686",
"logLevel": "silent",
"secure": false,
"changeOrigin": true,
"ws": true,
"xfwd": true
}
},
"homepage": null,
"devDependencies": {
"babel-eslint": "^7.2.3",
Expand Down

0 comments on commit b5923ca

Please sign in to comment.