Skip to content

Commit

Permalink
Update nginx.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoey2936 committed Jan 7, 2025
1 parent 9ed263d commit 8a1fbc4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions backend/internal/nginx.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,17 +202,13 @@ const internalNginx = {
host.locations = origLocations;

if (process.env.DISABLE_NGINX_BEAUTIFIER === 'false') {
try {
utils.execFile('nginxbeautifier', ['-s', '4', filename]);
} catch {
logger.error('nginxbeautifier failed');
}
utils.execFile('nginxbeautifier', ['-s', '4', filename]);
}

resolve(true);
})
.catch((err) => {
reject(new error.ConfigurationError(err.message));
logger.error(err.message);
});
});
});
Expand Down

0 comments on commit 8a1fbc4

Please sign in to comment.