(req, res)
| 66 | morgan.format('prod', productionLogging); |
| 67 | app.use(morgan('prod')); |
| 68 | app.use(compression({filter(req, res) { |
| 69 | if (req.headers.host === 'codecombat.com') { return false; } // CloudFlare will gzip it for us on codecombat.com |
| 70 | return compressible(res.getHeader('Content-Type')); |
| 71 | } |
| 72 | }) |
| 73 | ); |
| 74 | } else if (!global.testing || config.TRACE_ROUTES) { |
nothing calls this directly
no outgoing calls
no test coverage detected