Skip to content

Commit

Permalink
Update addProxy.js
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongzhi107 committed Nov 23, 2019
1 parent bbff397 commit 09f6236
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/utils/addProxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default (app) => {
try {
rules = JSON.parse(process.env.DACE_PROXY);
app.use(urlrewrite(rules, {
debug: true
debug: process.env.NODE_ENV === 'development'
}));
} catch (e) {
throw new Error('[JSON.parse error] `DACE_PROXY` is an invalid json.');
Expand Down

0 comments on commit 09f6236

Please sign in to comment.