Skip to content

Commit

Permalink
3. Setup proxy, so we can access http://localhost:8000/api/users
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Dec 19, 2016
1 parent b7de456 commit 7b3851c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .roadhogrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@
"less": false,
"publicPath": "/",
"autoprefixer": null,
"proxy": null,
"proxy": {
"/api": {
"target": "http://jsonplaceholder.typicode.com/",
"changeOrigin": true,
"pathRewrite": { "^/api" : "" }
}
},
"extraBabelPlugins": [
"transform-runtime",
["import", { "libraryName": "antd", "style": "css" }]
Expand Down

0 comments on commit 7b3851c

Please sign in to comment.