Skip to content

Commit

Permalink
feat: 增加输出 urlrewrite 转发信息日志
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongzhi107 committed Nov 22, 2019
1 parent 70108ab commit f48e528
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"file-loader": "^4.0.0",
"import-fresh": "^3.0.0",
"mini-css-extract-plugin": "^0.7.0",
"packing-urlrewrite": "^0.2.0",
"packing-urlrewrite": "^0.2.1",
"postcss-loader": "^3.0.0",
"postcss-preset-env": "^6.6.0",
"postcss-reporter": "^6.0.1",
Expand Down
4 changes: 3 additions & 1 deletion src/runtime/utils/addProxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ export default (app) => {
let rules = {};
try {
rules = JSON.parse(process.env.DACE_PROXY);
app.use(urlrewrite(rules));
app.use(urlrewrite(rules, {
debug: true
}));
} catch (e) {
throw new Error('[JSON.parse error] `DACE_PROXY` is an invalid json.');
}
Expand Down

0 comments on commit f48e528

Please sign in to comment.