Skip to content

Commit

Permalink
Merge pull request #9068 from RocketChat/turn-pretty-json-off
Browse files Browse the repository at this point in the history
Turn off prettyJson if the node environment isn't development
  • Loading branch information
rodrigok authored Dec 11, 2017
2 parents 4d46831 + e0e879a commit 200dac7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/rocketchat-api/server/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ const createApi = function(enableCors) {
RocketChat.API.v1 = new API({
version: 'v1',
useDefaultAuth: true,
prettyJson: true,
prettyJson: process.env.NODE_ENV === 'development',
enableCors,
auth: getUserAuth()
});
Expand All @@ -368,7 +368,7 @@ const createApi = function(enableCors) {
if (!RocketChat.API.default || RocketChat.API.default._config.enableCors !== enableCors) {
RocketChat.API.default = new API({
useDefaultAuth: true,
prettyJson: true,
prettyJson: process.env.NODE_ENV === 'development',
enableCors,
auth: getUserAuth()
});
Expand Down

0 comments on commit 200dac7

Please sign in to comment.