Ghost/ghost/core/index.js
Daniel Lockyer eb718276e8 Configured New Relic to load earlier in the process
refs https://github.com/TryGhost/DevOps/issues/68

- we want New Relic to be one of the first modules to load so it can
  instrument the rest of our code
- previously this would not have been the case, and it would have missed
  out on instrumenting the config and logging code
- this moves the require to be the first step in the process if the
  PRO_ENV env var is set
2023-08-30 11:47:50 +02:00

7 lines
93 B
JavaScript

// Load New Relic
if (process.env.PRO_ENV) {
require('newrelic');
}
require('./ghost');